package
0.0.17
Repository: https://github.com/libs4go/bcf4go.git
Documentation: pkg.go.dev

# Functions

BytesToPrivateKey 。.
BytesToPublicKey .
CompressedPublicKeyBytes .
IsCompressedPubKey returns true the the passed serialized public key has been encoded in compressed format, and false otherwise.
NewPrivateKey is a wrapper for ecdsa.GenerateKey that returns a PrivateKey instead of the normal ecdsa.PrivateKey.
PrivateKeyBytes 。.
PrivKeyFromBytes returns a private and public key for `curve' based on the private key passed as an argument as a byte slice.
PublicKeyBytes .

# Constants

PrivKeyBytesLen defines the length in bytes of a serialized private key.
These constants define the lengths of serialized public keys.
These constants define the lengths of serialized public keys.
These constants define the lengths of serialized public keys.

# Type aliases

PrivateKey wraps an ecdsa.PrivateKey as a convenience mainly for signing things with the the private key without having to directly import the ecdsa package.
PublicKey is an ecdsa.PublicKey with additional functions to serialize in uncompressed, compressed, and hybrid formats.