kobe_svm/lib.rs
1//! Solana HD wallet derivation for Kobe.
2//!
3//! Derives Solana addresses from a [`kobe::Wallet`] seed using SLIP-10 Ed25519.
4//! Supports Phantom/Backpack, Trust Wallet, and Ledger Live derivation styles.
5
6#![cfg_attr(not(feature = "std"), no_std)]
7
8#[cfg(feature = "alloc")]
9extern crate alloc;
10
11#[cfg(feature = "alloc")]
12mod derivation_style;
13#[cfg(feature = "alloc")]
14mod deriver;
15mod error;
16
17#[cfg(feature = "alloc")]
18pub use derivation_style::{DerivationStyle, ParseDerivationStyleError};
19#[cfg(feature = "alloc")]
20pub use deriver::{DerivedAddress, Deriver};
21pub use error::Error;
22
23/// Convenient Result alias.
24pub type Result<T> = core::result::Result<T, Error>;