keys

package
v3.0.1-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 GetPrivateKeyFromBytes(privKeyBytes []byte) (*btcec.PrivateKey, *btcec.PublicKey, error)

func GetPublicKeyFromBytes

func GetPublicKeyFromBytes(pubKeyBytes []byte) (*btcec.PublicKey, error)

func PrivateKeyToDER

func PrivateKeyToDER(key *btcec.PrivateKey) ([]byte, error)

func PublicKeyToDER

func PublicKeyToDER(publicKey *btcec.PublicKey) ([]byte, error)

Types

type Signature

type Signature struct {
	btcec.Signature
}

func (*Signature) LBRYSDKEncode

func (s *Signature) LBRYSDKEncode() ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL