Skip to main content

Crate bsv_primitives

Crate bsv_primitives 

Source
Expand description

BSV Blockchain SDK - Cryptographic primitives, hashing, and utilities.

This crate provides the foundational building blocks for the BSV SDK:

  • Hash functions (SHA-256, SHA-256d, RIPEMD-160, SHA-512, HMAC)
  • Chain hash type for transaction and block identification
  • Elliptic curve cryptography (secp256k1 keys, signatures, derivation)
  • Symmetric encryption (AES-256-GCM)
  • Variable-length integer encoding
  • Base58 encoding/decoding

Modules§

base58
Base58 encoding and decoding with optional checksum support.
chainhash
Chain hash type for transaction and block identification.
ec
Elliptic curve cryptography on secp256k1.
hash
Hash function primitives for the BSV SDK.
util
Utility types for binary serialization.

Enums§

PrimitivesError
Unified error type for all primitives operations.