api/api library
Classes
- ApiValidate
- Shared argument checks for API validation wrappers. Throws BuError on bad caller input.
- BlockchainUtils
- Facade selecting the active BlockchainUtilsApi backend (Dart or Rust).
- BlockchainUtilsApi
- Unified entry point for all blockchain crypto subsystems.
- BlockchainUtilsSigningApi
- Grouped signing backends by signature scheme.
- BuAead
- BuBytes
- Rule violations in BuBytes / SecretBytes throw BuError.
-
BuSerializableHash<
STATE extends BuHashState> - DartHwApi
- HwApi pure-Dart backend.
- DartMerkleApi
- MerkleApi pure-Dart backend.
- DartOrchardApi
- OrchardApi pure-Dart backend.
- DartRngApi
- RngApi pure-Dart backend.
- DartSaplingApi
- SaplingApi pure-Dart backend.
- DefaultBlockchainUtilsApi
- Default BlockchainUtilsApi implementation wiring every subsystem.
- DefaultBlockchainUtilsSigningApi
- Default BlockchainUtilsSigningApi implementation wiring every scheme.
- HwApi
- Hardware-wallet codec API (Ledger / Trezor / BitBox02 / airgap QR).
- HwCatalog
-
Static catalog over the variant-keyed
hwSupportrows: which devices exist, which coins/variants each device can sign, and how proven. - MerkleApi
- Frontier-model Merkle contexts (Sapling + Orchard + Ironwood wallet sync).
- NativeHwApi
- HwApi backed by the native (FFI/platform) implementation.
- NativeMerkleApi
- MerkleApi backed by a native (FFI/platform) implementation.
- NativeOrchardApi
- OrchardApi backed by a native (FFI/platform) implementation.
- NativeRngApi
- RngApi backed by a native (FFI/platform) implementation.
- NativeSaplingApi
- SaplingApi backed by a native (FFI/platform) implementation.
- OrchardApi
- Orchard Action proving backend interface (Halo2, Pasta curves).
- RngApi
- Global ChaCha20 RNG backend interface (seed-once, process-wide).
- SaplingApi
- Sapling Groth16 proving backend interface.
- SecretBytes
- SecretState
- Opt-in disposal for wrappers around long-lived native handles (hash contexts, AES contexts, params/proving keys).
Extensions
- EasyHwApiX on HwApi
-
Easy mode over HwApi: work with CryptoCoins (BIP44/49/84/86/…) and
human paths instead of raw
intids and<u32 LE>blobs.
Properties
- blockchainUtils → BlockchainUtils
-
Shared BlockchainUtils singleton used to access the configured backend.
final
Functions
-
hwCoinIdForSlip44(
{required int slip44, required CryptoKeyType type, int purpose = 44}) → int? -
Map a
(SLIP44, key type, purpose)triple to a connectorBuHwCoinid. -
hwReadinessFor(
{required CryptoCoins< BaseCoinConfig> coin, required int device, String? variant}) → HwReadiness -
Readiness of (
coin,device) — optionally pinned to one address variant ('p2pkh' | 'p2wpkh' | 'p2sh' | 'p2tr', curve name otherwise). -
isSupportedByHw(
{required CryptoCoins< BaseCoinConfig> coin, required int device, String? variant}) → bool -
True only when (
coin,device) is live-proven (variantpins one address type/curve; without it, true when ANY variant is ready). Everything else — includingneedsAppWork— is false: "coming soon" is not "can sign".