Expand description
§webylib — Webcash HD Wallet Library
A secure, production-grade Rust implementation of the Webcash electronic cash protocol.
§Features
- Deterministic HD wallet (BIP32-style 4-chain derivation)
- SQLite storage with WAL mode for crash safety
- Passkey and password-based encryption (Argon2 + AES-256-GCM)
- Full server client (health check, replace, mining)
- Zeroize-on-drop for all secret material
§Quick Start
use webylib::{Wallet, SecretWebcash};
let wallet = Wallet::open("my_wallet.db").await?;
let webcash = SecretWebcash::parse("e1.00000000:secret:abcdef123456...")?;
wallet.insert(webcash).await?;
let balance = wallet.balance().await?;Re-exports§
pub use amount::Amount;pub use error::Error;pub use error::Result;pub use hd::ChainCode;pub use protocol::TERMS_OF_SERVICE;pub use protocol::VERSION;pub use server::endpoints;pub use server::NetworkMode;pub use webcash::PublicWebcash;pub use webcash::SecretWebcash;pub use wallet::Wallet;pub use wallet::WalletSnapshot;pub use wallet::WalletStats;
Modules§
- amount
- Amount type with 8-decimal precision for Webcash
- auth
- Wallet-side PGP keyring + issuer fingerprint identity.
- core
- Asset-generic wallet operations.
- crypto
- Cryptographic utilities for Webcash
- error
- Error types for the Webcash wallet library
- ffi
- C FFI bindings for webylib.
- hd
- HD derivation for the webycash family.
- miner
- Light CPU miner for testnet usage.
- passkey
- Passkey encryption for Webcash wallets
- proto_
client - Wallet-side wire-format types and parsers.
- protocol
- Webcash protocol constants and version information.
- server
- Server communication for Webcash operations
- server_
client - Minimal asset-agnostic HTTP client for the webycash-server family.
- storage
- Wallet-side storage layer.
- wallet
- Wallet engine — pluggable-storage HD wallet for Webcash.
- wallet_
rgb - RGB wallet specialization for RGB20 (fungible) and RGB21 (non-splittable, licensable — Perpetual or Royalties License).
- wallet_
voucher - Voucher wallet specialization. Always-splittable bearer credits.
- wallet_
webcash - Webcash wallet specialization.
- webcash
- Webcash types and serialization