pubkeyConverter

package
v1.999.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: GPL-3.0 Imports: 7 Imported by: 7

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

ErrInvalidErdAddress signals that the provided address is not an ERD 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