Documentation ¶
Index ¶
- Constants
- func RecoverAddress(hash, signature []byte) (*gethcommon.Address, error)
- func RecoverPubKey(hash, signature []byte) (*ecdsa.PublicKey, error)
- func RecoverPubKeyBytes(hash, signature []byte) ([]byte, error)
- func Sign(messageHash []byte, key *ecdsa.PrivateKey) ([]byte, error)
- func VerifySignature(pubKey *ecdsa.PublicKey, hash, signature []byte) error
Constants ¶
View Source
const ( SigLength = 65 SigRecoveryOffset = 27 )
Variables ¶
This section is empty.
Functions ¶
func RecoverAddress ¶
func RecoverAddress(hash, signature []byte) (*gethcommon.Address, error)
func RecoverPubKeyBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.