Documentation ¶
Index ¶
- func Hash(message []byte) []bytedeprecated
- func NewKey() (*ecdsa.PrivateKey, error)deprecated
- func PrivateKeyBytes(privateKey *ecdsa.PrivateKey) []bytedeprecated
- func PrivateKeyFromBytes(bytes []byte) (*ecdsa.PrivateKey, error)deprecated
- func PublicKeyBytes(publicKey *ecdsa.PublicKey) []bytedeprecated
- func Sign(digest []byte, privateKey *ecdsa.PrivateKey) ([]byte, error)deprecated
- func Verify(publicKey, digest, signature []byte) booldeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKey
deprecated
func NewKey() (*ecdsa.PrivateKey, error)
Deprecated: use package keys/eth NewKey generates new secp256k1 key using Ethereum crypto functions
func PrivateKeyBytes
deprecated
func PrivateKeyBytes(privateKey *ecdsa.PrivateKey) []byte
Deprecated: use package keys/eth PrivateKeyBytes returns bytes representation of secp256p1 private key
func PrivateKeyFromBytes
deprecated
func PrivateKeyFromBytes(bytes []byte) (*ecdsa.PrivateKey, error)
Deprecated: use package keys/eth PrivateKeyFromBytes creates a secp256k1 private key from its bytes representation
func PublicKeyBytes
deprecated
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.