-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.go
21 lines (14 loc) · 856 Bytes
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package pubkeyConverter
import "errors"
// ErrInvalidAddressLength signals that address length is invalid
var ErrInvalidAddressLength = errors.New("invalid address length")
// ErrWrongSize signals that a wrong size occurred
var ErrWrongSize = errors.New("wrong size")
// ErrInvalidMoaAddress signals that the provided address is not an MOA address
var ErrInvalidMoaAddress = errors.New("invalid MOA address")
// ErrBech32ConvertError signals that conversion the 5bit alphabet to 8bit failed
var ErrBech32ConvertError = errors.New("can't convert bech32 string")
// ErrHrpPrefix signals that the prefix is not human readable or empty
var ErrInvalidHrpPrefix = errors.New("invalid hrp prefix")
// ErrConvertBits signals that a configuration mistake has been introduced
var ErrConvertBits = errors.New("invalid fromBits or toBits when converting bits")