package
0.1.0
Repository: https://github.com/gatechain/crypto.git
Documentation: pkg.go.dev

# Functions

ComputeMastersFromSeed returns the master public key, master secret, and chain code in hex.
DerivePrivateKeyForPath derives the private key by following the BIP 32/44 path from privKeyBytes, using the given chainCode.
GenPrivKey generates a new ECDSA private key on curve secp256k1 private key.
GenPrivKeySecp256k1 hashes the secret with SHA2, and uses that 32 byte output to create the private key.
GenerateKey generates a new random private key.

# Constants

-------------------------------------.
-------------------------------------.
PubKeySecp256k1Size is comprised of 32 bytes for one field element (the x-coordinate), plus one byte for the parity of the y-coordinate.

# Type aliases

PrivKeySecp256k1 implements PrivKey.
PubKeySecp256k1 implements crypto.PubKey.