sigutil

package
v0.1.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

func VerifyEIP712Signature added in v0.1.19

func VerifyEIP712Signature(address common.Address, typedData apitypes.TypedData, signatureBytes []byte) (bool, error)

VerifyEIP712Signature verifies an EIP-712 typed data signature

func VerifyEthAddressSignature

func VerifyEthAddressSignature(address common.Address, messageBytes []byte, signatureBytes []byte) (bool, error)

VerifyEthAddressSignature verifies if a message was signed by the owner of an Ethereum address

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL