Documentation
¶
Index ¶
- func PluginUpdateTypedData(pluginID, signer string, nonce, timestamp int64, updates []FieldUpdate) apitypes.TypedData
- func VerifyEIP712Signature(address common.Address, typedData apitypes.TypedData, signatureBytes []byte) (bool, error)
- func VerifyEthAddressSignature(address common.Address, messageBytes []byte, signatureBytes []byte) (bool, error)
- type FieldUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PluginUpdateTypedData ¶ added in v0.1.19
func PluginUpdateTypedData(pluginID, signer string, nonce, timestamp int64, updates []FieldUpdate) apitypes.TypedData
PluginUpdateTypedData creates the EIP-712 typed data for plugin updates
Types ¶
type FieldUpdate ¶ added in v0.1.19
type FieldUpdate struct {
Field string `json:"field"`
OldValue string `json:"oldValue"`
NewValue string `json:"newValue"`
}
FieldUpdate represents a single field change in a plugin update
Click to show internal directories.
Click to hide internal directories.