eth

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash deprecated

func Hash(message []byte) []byte

Deprecated: use package keys/eth Hash calculates a hash for given message using Ethereum crypto 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

func PublicKeyBytes(publicKey *ecdsa.PublicKey) []byte

Deprecated: use package keys/eth PublicKeyBytes returns bytes representation of secp256p1 public key

func Sign deprecated

func Sign(digest []byte, privateKey *ecdsa.PrivateKey) ([]byte, error)

Deprecated: use package keys/eth Sign calculates an ECDSA signature using Ethereum crypto functions

func Verify deprecated

func Verify(publicKey, digest, signature []byte) bool

Deprecated: use package keys/eth Verify checks that the given public key created signature over digest using Ethereum crypto functions

Types

This section is empty.

Jump to

Keyboard shortcuts

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