Documentation ¶
Overview ¶
Package key_utils provides methods to generate keys and retrieve bitpay specific ids (the SIN) and correctly formatted signatures.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractCompressedPublicKey ¶
ExtractCompressedPublicKey returns a hexadecimal encoding of the compressed public key. It expects a pem string as the argument.
func ExtractKeyFromPem ¶
func ExtractKeyFromPem(pm string) *btcec.PrivateKey
Returns a btec.Private key object if provided a correct secp256k1 encoded pem.
func GeneratePem ¶
func GeneratePem() string
All BitPay clients use a PEM file to store the private and public keys.
func GenerateSinFromPem ¶
GenerateSinFromPem returns a base58 encoding of a public key. It expects a pem string as the argument.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.