Documentation ¶
Index ¶
- func ExtractKeyFromPem(pm string) (*btcec.PrivateKey, *btcec.PublicKey)
- func GetPrivateKeyFromBytes(privKeyBytes []byte) (*btcec.PrivateKey, *btcec.PublicKey, error)
- func GetPublicKeyFromBytes(pubKeyBytes []byte) (*btcec.PublicKey, error)
- func PrivateKeyToDER(key *btcec.PrivateKey) ([]byte, error)
- func PublicKeyToDER(publicKey *btcec.PublicKey) ([]byte, error)
- type Signature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractKeyFromPem ¶
func ExtractKeyFromPem(pm string) (*btcec.PrivateKey, *btcec.PublicKey)
ExtractKeyFromPem returns a btec.Private key object if provided a correct secp256k1 encoded pem.
func GetPrivateKeyFromBytes ¶
func GetPublicKeyFromBytes ¶
func PrivateKeyToDER ¶
func PrivateKeyToDER(key *btcec.PrivateKey) ([]byte, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.