CryptoErrorTypes enum

Exhaustive list of cryptographic error types.

Inheritance

Constructors

CryptoErrorTypes()
const

Values

prefixNotFound → const CryptoErrorTypes

Prefix not found error.

Happens when :

  • trying to encode with an unknown prefix.
  • trying to ignore an unknown prefix.
seedBytesLengthError → const CryptoErrorTypes

Invalid seed bytes length

Happens when the seed bytes length is != 32.

seedLengthError → const CryptoErrorTypes

Invalid (string) seed length.

Happens when the seed length is != 54.

secretKeyLengthError → const CryptoErrorTypes

Invalid (string) secret key length.

Happens when the secret key length is != 98.

encryptedSecretKeyLengthError → const CryptoErrorTypes

Invalid (string) encrypted secret key length.

Happens when the encrypted secret key length is != 88.

invalidMnemonic → const CryptoErrorTypes

Invalid mnemonic.

Happens when :

  • the mnemonic is short.
  • the mnemonic contains an unknown word.
invalidChecksum → const CryptoErrorTypes

Invalid checksum.

Happens when :

  • the checksum of a secret key is invalid.
  • the checksum of a seed is invalid.
invalidHexDataLength → const CryptoErrorTypes

Hexadecimal data length is odd.

Happens when the length of an hexadecimal representation of a list of bytes is odd.

invalidHex → const CryptoErrorTypes

Invalid hexadecimal string.

Happens when the hexadecimal string contains invalid characters ([a-fA-F0-9]).

unhandled → const CryptoErrorTypes

Unhandled error.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<CryptoErrorTypes>
A constant List of the values in this enum, in order of their declaration.