package
0.0.0-20230307085542-82e463e69797
Repository: https://github.com/icon-project/btp.git
Documentation: pkg.go.dev

# Functions

GenerateKeyPair generates a private and public key pair.
No description provided by the author
NewSignature calculates an ECDSA signature including V, which is 0 or 1.
ParsePublicKey parse private key and return private key object.
ParsePublicKey parses the public key into a PublicKey instance.
ParseSignature parses a signature from the raw byte array of 64([R|S]) or 65([R|S|V]) bytes long.
ParseSignatureVRS parses a signature from the [V|R|S] formatted signature.
SHA3Sum256 returns the SHA3-256 digest of the data.
SHASum256 returns the SHA256 digest of the data.

# Constants

HashLen is the bytes length of hash for signature.
PrivateKeyLen is the byte length of a private key.
PublicKeyLenCompressed is the byte length of a compressed public key.
PublicKeyLenUncompressed is the byte length of an uncompressed public key.
SignatureLenRaw is the bytes length of signature not including V value.
SignatureLenRawWithV is the bytes length of signature including V value.

# Structs

PrivateKey is a type representing a private key.
PublicKey is a type representing a public key, which can be serialized to or deserialized from compressed or uncompressed formats.
Signature is a type representing an ECDSA signature with or without V.