pubkeyConverter

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

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 ErrInvalidAddressLength = errors.New("invalid address length")

ErrInvalidAddressLength signals that address length is invalid

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, log core.Logger) (*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