Overview of Libauth API capabilities
masterLibauth provides a comprehensive suite of low-level and high-level utilities for blockchain development, specifically focused on Bitcoin and Bitcoin Cash ecosystems. High-level utilities are composed from lower-level primitives, allowing developers to remix behavior with minimal maintenance.
The API is organized into several functional domains:
- Address Formats: Encoding and decoding for Base58, Bech32, CashAddress, and related formats.
- Crypto: Hashing (SHA, RIPEMD), HMAC, PBKDF2, and secp256k1 operations.
- Formats: Conversions between Base-N, Base64, Binary Strings, Hex, and various numeric representations (including CompactUint/VarInt and Satoshi values).
- Keys: BIP32 (HD Keys), BIP39 (Mnemonics), WIF, and general key generation/validation.
- P2P Messages: Utilities for decoding P2P messages, handling transactions, and calculating dust thresholds.
- Virtual Machines: Built-in VMs for different instruction sets (BCH, XEC, etc.), debugging tools (assembler/disassembler), and operation combinators.
- Wallet Engine: Advanced features including Bitcoin Cash Metadata Registries (BCMRs), CashAssembly language/compiler, multi-party compilation, and wallet templates.