Documentation ¶
Index ¶
Constants ¶
View Source
const PubKeySize = 33
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PubKey ¶
type PubKey [PubKeySize]byte
func NewPubKeyFromBytes ¶
NewPubKeyFromBytes returns a new PubKey based on a serialized pubkey in a byte slice.
func NewPubKeyFromKey ¶
func NewPubKeyFromKey(key *btcec.PublicKey) PubKey
NewPubKeyFromKey returns a strongly typed serialized key from a secp256k1.PublicKey instance.
func NewPubKeyFromStr ¶
NewPubKeyFromStr returns a new PubKey given its hex-encoded string format.
Click to show internal directories.
Click to hide internal directories.