1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! The crate error taxonomy.
//!
//! Every fallible operation in dig-options returns [`Result`], whose error is [`Error`].
//! The variants separate the three failure sources a pure builder can hit: a lower-level
//! driver failure while constructing a spend, a signer failure while computing the required
//! signatures, and caller-supplied input that cannot produce a valid spend.
use DriverError;
use SignerError;
/// The result of a dig-options operation.
pub type Result<T> = Result;
/// Everything that can go wrong while building an option coin spend or reporting the
/// signatures a coin spend requires.