Documentation ¶
Index ¶
- func AccountHex(publicKey []byte) string
- func ExportPrivateKeyInPem(privateKey []byte) []byte
- func ExportPublicKeyInPem(publicKey []byte) []byte
- func ParseKeyFiles(pubKeyPath, privKeyPath string) keypair.KeyPair
- func ParseKeyPair(publicKey, privateKey string) keypair.KeyPair
- func ParsePrivateKey(pemEncoded string) []byte
- func ParsePrivateKeyFile(path string) []byte
- func ParsePublicKey(pemEncodedPub string) []byte
- func ParsePublicKeyFile(path string) []byte
- func Secp256k1Random() keypair.KeyPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountHex ¶
AccountHex generates the accountHex for the Secp256K1 public key
func ExportPrivateKeyInPem ¶
ExportPrivateKeyInPem expects the private key encoded in pem
func ExportPublicKeyInPem ¶
ExportPublicKeyInPem exports the public key encoded in pem
func ParseKeyFiles ¶
func ParseKeyPair ¶
ParseKeyPair constructs keyPair from public key and private key
func ParsePrivateKey ¶
func ParsePrivateKeyFile ¶
func ParsePublicKey ¶
func ParsePublicKeyFile ¶
func Secp256k1Random ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.