Enum celestia_types::Error
source · pub enum Error {
Show 38 variants
UnsupportedNamespaceVersion(u8),
InvalidNamespaceSize,
Tendermint(Error),
Protobuf(Error),
Multihash(Error),
CidError(CidError),
MissingHeader,
MissingCommit,
MissingValidatorSet,
MissingDataAvailabilityHeader,
MissingProof,
WrongProofType,
UnsupportedShareVersion(u8),
InvalidShareSize(usize),
InvalidNmtLeafSize(usize),
InvalidNmtNodeOrder,
ShareSequenceLenExceeded(usize),
InvalidNamespaceV0,
InvalidNamespaceV255,
InvalidNamespacedHash(InvalidNamespacedHash),
InvalidSignatureIndex(usize, u64),
InvalidAxis(i32),
RangeProofError(RangeProofError),
RootMismatch,
UnexpectedAbsentSignature,
Validation(ValidationError),
Verification(VerificationError),
MaxShareVersionExceeded(u8),
Nmt(&'static str),
InvalidAddressPrefix(String),
InvalidAddressSize(usize),
InvalidAddress(String),
InvalidBalanceDenomination(String),
InvalidBalanceAmount(String),
UnsupportedFraudProofType(String),
EdsIndexOutOfRange(usize),
EdsInvalidDimentions,
ZeroBlockHeight,
}Expand description
Representation of all the errors that can occur when interacting with celestia_types.
Variants§
UnsupportedNamespaceVersion(u8)
Unsupported namespace version.
InvalidNamespaceSize
Invalid namespace size.
Tendermint(Error)
Error propagated from the celestia_tendermint.
Protobuf(Error)
Error propagated from the celestia_tendermint_proto.
Multihash(Error)
Error propagated from the cid::multihash.
CidError(CidError)
Error returned when trying to compute new or parse existing CID. See blockstore::block
MissingHeader
Missing header.
MissingCommit
Missing commit.
MissingValidatorSet
Missing validator set.
MissingDataAvailabilityHeader
Missing data availability header.
MissingProof
Missing proof.
WrongProofType
Wrong proof type.
Unsupported share version.
Invalid share size.
InvalidNmtLeafSize(usize)
Invalid nmt leaf size.
InvalidNmtNodeOrder
Invalid nmt node order.
Share sequence length exceeded.
InvalidNamespaceV0
Invalid namespace in version 0.
InvalidNamespaceV255
Invalid namespace in version 255.
InvalidNamespacedHash(InvalidNamespacedHash)
Invalid namespaced hash.
InvalidSignatureIndex(usize, u64)
Invalid index of signature in commit.
InvalidAxis(i32)
Invalid axis.
RangeProofError(RangeProofError)
Range proof verification error.
RootMismatch
Row root computed from shares doesn’t match one received in `DataAvailabilityHeaderz
UnexpectedAbsentSignature
Unexpected signature in absent commit.
Validation(ValidationError)
Error that happened during validation.
Verification(VerificationError)
Error that happened during verification.
Max share version exceeded.
Nmt(&'static str)
An error related to the namespaced merkle tree.
InvalidAddressPrefix(String)
Invalid address bech32 prefix.
InvalidAddressSize(usize)
Invalid size of the address.
InvalidAddress(String)
Invalid address.
InvalidBalanceDenomination(String)
Invalid balance denomination.
InvalidBalanceAmount(String)
Invalid balance amount.
UnsupportedFraudProofType(String)
Unsupported fraud proof type.
EdsIndexOutOfRange(usize)
Data square index out of range.
EdsInvalidDimentions
Could not create EDS, provided number of shares doesn’t form a pefect square
ZeroBlockHeight
Zero block height.