package
0.0.0-20230118211435-680381ece415
Repository: https://github.com/exzonetwork/exzocoin.git
Documentation: pkg.go.dev
# Functions
BLSSecretKeyToPubkeyBytes returns bytes of BLS Public Key corresponding to the given secret key.
BytesToBLSPublicKey decodes given hex string and returns BLS Public Key.
BytesToECDSAPrivateKey reads the input byte array and constructs a private key if possible.
BytesToECDSAPrivateKey reads the input byte array and constructs a private key if possible.
CreateAddress creates an Ethereum address.
CreateAddress2 creates an Ethereum address following the CREATE2 Opcode.
No description provided by the author
No description provided by the author
GenerateAndEncodeECDSAPrivateKey returns a newly generated private key and the Base64 encoding of that private key.
GenerateBLSKey generates a new BLS key.
GenerateECDSAKey generates a new key based on the secp256k1 elliptic curve.
GenerateOrReadPrivateKey generates a private key at the specified path, or reads it if a key file is present.
GetAddressFromKey extracts an address from the private key.
Keccak256 calculates the Keccak256.
MarshalECDSAPrivateKey serializes the private key's D value to a []byte.
MarshalPublicKey marshals a public key on the secp256k1 elliptic curve.
NewEIP155Signer returns a new EIP155Signer object.
NewSigner creates a new signer object (EIP155 or FrontierSigner).
No description provided by the author
ParsePublicKey parses bytes into a public key on the secp256k1 elliptic curve.
PubKeyToAddress returns the Ethereum address of a public key.
No description provided by the author
RecoverPubkey verifies the compact signature "signature" of "hash" for the secp256k1 curve.
Sign produces a compact signature of the data in hash with the given private key on the secp256k1 curve.
SignByBLS signs the given data by BLS.
SigToPub returns the public key that created the given signature.
UnmarshalBLSPublicKey unmarshal bytes data into BLS Public Key.
UnmarshalBLSSignature unmarshal bytes data into BLS Signature.
ValidateSignatureValues checks if the signature values are correct.
VerifyBLSSignature verifies the given signature from Public Key and original message.
VerifyBLSSignatureFromBytes verifies BLS Signature from BLS PublicKey, signature, and original message in bytes.
# Variables
No description provided by the author
S256 is the secp256k1 elliptic curve.
# Structs
No description provided by the author
No description provided by the author
# Interfaces
TxSigner is a utility interface used to recover data from a transaction.
# Type aliases
No description provided by the author