pubkeyConverter

package
v1.2.16 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: GPL-3.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBech32ConvertError = errors.New("can't convert bech32 string")

ErrBech32ConvertError signals that conversion the 5bit alphabet to 8bit failed

View Source
var ErrConvertBits = errors.New("invalid fromBits or toBits when converting bits")

ErrConvertBits signals that a configuration mistake has been introduced

View Source
var ErrInvalidAddressLength = errors.New("invalid address length")

ErrInvalidAddressLength signals that address length is invalid

View Source
var ErrInvalidHrpPrefix = errors.New("invalid hrp prefix")

ErrHrpPrefix signals that the prefix is not human readable or empty

View Source
var ErrInvalidMoaAddress = errors.New("invalid MOA address")

ErrInvalidMoaAddress signals that the provided address is not an MOA address

View Source
var ErrWrongSize = errors.New("wrong size")

ErrWrongSize signals that a wrong size occurred

Functions

func NewBech32PubkeyConverter

func NewBech32PubkeyConverter(addressLen int, prefix string) (*bech32PubkeyConverter, error)

NewBech32PubkeyConverter returns a bech32PubkeyConverter instance

func NewHexPubkeyConverter

func NewHexPubkeyConverter(addressLen int) (*hexPubkeyConverter, error)

NewHexPubkeyConverter returns a hexPubkeyConverter instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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