Documentation
¶
Index ¶
- Constants
- Variables
- func DecodeEIP6492Signature(signature []byte) (common.Address, []byte, []byte, error)
- func IsEIP6492Signature(signature []byte) bool
- func ValidateEIP6492(ctx context.Context, provider *ethrpc.Provider, signer common.Address, ...) (bool, error)
- func ValidateEIP6492Offchain(ctx context.Context, provider *ethrpc.Provider, signer common.Address, ...) (bool, error)
- func ValidateEIP6492Onchain(ctx context.Context, provider *ethrpc.Provider, signer common.Address, ...) (bool, error)
Constants ¶
View Source
const EIP_6492_ADDRESS = "0x0000000044dE9306b161ddE8D58682054e70c766"
View Source
const EIP_6492_OFFCHAIN_DEPLOY_CODE = "" /* 9366-byte string literal not displayed */
View Source
const EIP_6492_SUFFIX = "0x6492649264926492649264926492649264926492649264926492649264926492"
Variables ¶
View Source
var EIP6492MagicBytes = hexutil.MustDecode(EIP_6492_SUFFIX)
Functions ¶
func DecodeEIP6492Signature ¶
func IsEIP6492Signature ¶
func ValidateEIP6492 ¶ added in v0.63.4
func ValidateEIP6492Offchain ¶
func ValidateEIP6492Onchain ¶ added in v0.63.4
func ValidateEIP6492Onchain( ctx context.Context, provider *ethrpc.Provider, signer common.Address, hash common.Hash, signature []byte, block *big.Int, ) (bool, error)
ValidateEIP6492Onchain validates an EIP-6492 signature by calling the pre-deployed UniversalSigValidator at EIP_6492_ADDRESS and invoking isValidSigWithSideEffects. It takes the same arguments as ValidateEIP6492Offchain but uses the onchain contract instead of deployment via constructor.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.