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
Click to show internal directories.
Click to hide internal directories.