1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#[derive(Debug, PartialEq)]
pub enum Error {
    MalformedMerkleProof,
    InvalidMerkleProof,
    EndOfFile,
    MalformedHeader,
    InvalidBlockVersion,
    MalformedTransaction,
    UnsupportedInputFormat,
    MalformedWitnessOutput,
    MalformedP2PKHOutput,
    MalformedP2SHOutput,
    UnsupportedOutputFormat,
    MalformedOpReturnOutput,
    InvalidHeaderSize,
    InvalidBtcHash,
    InvalidScript,
    InvalidBtcAddress,
    ArithmeticOverflow,
    ArithmeticUnderflow,
    InvalidCompact,
    BoundExceeded,
    InvalidTxid,
}