kobe-spark 1.1.0

Spark (Bitcoin L2) wallet for Kobe
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Error types for Spark wallet operations.

#[cfg(feature = "alloc")]
use alloc::string::String;

/// Errors from Spark HD derivation.
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum DeriveError {
    /// Core kobe error (index overflow, BIP-32 derivation, etc.).
    #[error(transparent)]
    Core(#[from] kobe_primitives::DeriveError),

    /// Bech32m encoding of the Spark address failed.
    #[cfg(feature = "alloc")]
    #[error("bech32m encoding: {0}")]
    Bech32(String),
}