keyid

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

View Source
const (
	KEY_ID_SIZE = 20
)

Variables

This section is empty.

Functions

func ToBech32AddressP2WSH

func ToBech32AddressP2WSH(hrp string, p2wshBytes []byte) (string, error)

func ValidSize

func ValidSize(keyIDData []byte) bool

Types

type KeyID

type KeyID struct {
	// contains filtered or unexported fields
}

func (KeyID) GetKeyIDData

func (k KeyID) GetKeyIDData() ([]byte, error)

func (KeyID) Pack

func (k KeyID) Pack(writer io.Writer) error

func (*KeyID) SetKeyIDData

func (k *KeyID) SetKeyIDData(keyIDBytes []byte) error

func (KeyID) ToBase58Address

func (k KeyID) ToBase58Address(version byte) (string, error)

func (KeyID) ToBech32AddressP2WPKH

func (k KeyID) ToBech32AddressP2WPKH(hrp string) (string, error)

func (*KeyID) UnPack

func (k *KeyID) UnPack(reader io.Reader) error

Jump to

Keyboard shortcuts

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