Documentation ¶
Overview ¶
Package bech32 implements bech32 encoding and decoding.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLength = errors.New("invalid length") ErrMissingSeparator = errors.New("missing separator '" + string(separator) + "'") ErrInvalidSeparator = errors.New("separator '" + string(separator) + "' at invalid position") ErrMixedCase = errors.New("mixed case") ErrInvalidCharacter = errors.New("invalid character") ErrInvalidChecksum = errors.New("invalid checksum") )
Errors reported during bech32 decoding.
Functions ¶
Types ¶
type SyntaxError ¶
type SyntaxError struct { Offset int // error occurred after reading Offset bytes // contains filtered or unexported fields }
A SyntaxError is a description of a Bech32 syntax error.
func (*SyntaxError) Error ¶
func (e *SyntaxError) Error() string
func (*SyntaxError) Unwrap ¶
func (e *SyntaxError) Unwrap() error
Directories ¶
Path | Synopsis |
---|---|
Package address provides utility functionality to encode and decode bech32 based addresses.
|
Package address provides utility functionality to encode and decode bech32 based addresses. |
internal
|
|
base32
Package base32 implements the conversion for bytes (base256) to base32.
|
Package base32 implements the conversion for bytes (base256) to base32. |
Click to show internal directories.
Click to hide internal directories.