libcardano
v3.0.5
Published
A comprehensive, minimal-dependency TypeScript library for interacting with the Cardano blockchain in both Node.js and Browser environments. Focusing on serialization, cryptography, and protocol compliance, this library provides the building blocks for cr
Readme
LibCardano
A comprehensive, minimal-dependency TypeScript library for interacting with the Cardano blockchain in both Node.js and Browser environments. Focusing on serialization, cryptography, and protocol compliance, this library provides the building blocks for creating wallets, processing transactions, and handling on-chain data structures.
Features
Cryptography & Primitives
- Ed25519 Support: Complete implementation for Ed25519 key generation and signing.
- Synchronous and Asynchronous APIs.
- HD Wallet support (BIP32 derivation).
- Key Management: Utilities for handling private and public keys.
- Hashing: Integrated Blake2b hashing utilities.
📦 Serialization & Deserialization
Full support for CBOR encoding and decoding of Cardano data structures:
- Blocks: Parsing and validation logic for blocks and block headers (Byron & Shelley compatible).
- Transactions:
- Construction and parsing of Shelley-era transactions.
- Transaction Bodies, Witness Sets, and Auxiliary Data.
- Support for multi-asset transfers (Minting/Burning).
- Scripts:
- Native Scripts (policy scripts).
- Plutus Scripts (V1, V2, V3 support).
- Addresses:
- Shelley Addresses (Base, Enterprise, Pointer, Reward).
- Byron Address decoding support.
- Stake Credentials and DRep identifiers.
- Governance (CIP-1694)
- Voting
- Proposals
- DRep
- Certificates
Standards Compliance
- CIP-8: Message Signing (COSE Sign1) implementation.
🛠 Utilities
- Encoding:
- Bech32 (address encoding/decoding).
- Base58 (legacy address support).
