Cryptographic Primitives Library

Bitcoin cryptographic library built from scratch for 210'000-Year longevity

Development MIT License

Ready to Build with Cryptographic Primitives?

Start using production-ready Bitcoin cryptography with native secp256k1, Schnorr signatures, and formal verification. Built for 210,000-year longevity.

πŸ“š Start with the API Docs
πŸ—“οΈ Book a 15-min Discovery Call

Overview

The Cryptographic Library is a Bitcoin-focused cryptographic library built from scratch with a design goal of 210'000-Year longevity. Unlike wrapper libraries that depend on external implementations, this library provides native implementations of all critical cryptographic primitives used in Bitcoin.

Key Features

  • Native secp256k1 Implementation: Pure implementation of elliptic curve operations without external dependencies for maximum auditability.
  • ECDSA & Schnorr Signatures: Support for both legacy ECDSA and modern Schnorr signature schemes (BIP340).
  • Formal Verification: Ongoing formal verification process to mathematically prove correctness of critical cryptographic operations.
  • BIP32/39/340 Support: Full implementation of HD wallets (BIP32), mnemonic seeds (BIP39), and Schnorr signatures (BIP340).
  • Zero External Dependencies: Built from scratch with no external cryptographic libraries for 210'000-Year longevity and security.

Technical Specifications

Language
Kotlin (JVM, Native, JS)
License
MIT
Status
Development (v0.8.0)
Test Coverage
98.5%

Roadmap

v0.5 - Core Primitives

secp256k1, ECDSA, SHA-256, RIPEMD-160

Completed Q2 2024

v0.7 - Schnorr & BIP Support

BIP340 Schnorr signatures, BIP32/39 HD wallets

Completed Q4 2024

v0.8 - Formal Verification

Formal verification of critical operations

In Progress Q1 2025

v1.0 - Production Release

Complete verification, security audit, production-ready

Planned Q3 2025

v2.0 - Advanced Features

MuSig2, FROST, threshold signatures

Planned Q1 2026

Integration Example

// Generate a new private key
val privateKey = PrivateKey.generate()

// Derive public key
val publicKey = privateKey.publicKey()

// Sign a message
val message = "Hello Bitcoin".toByteArray()
val signature = privateKey.sign(message)

// Verify signature
val isValid = publicKey.verify(message, signature)
println("Signature valid: $isValid")

// HD Wallet derivation (BIP32)
val masterKey = HDKey.fromSeed(seed)
val childKey = masterKey.derive("m/84'/0'/0'/0/0")

Test Drive the Cryptographic Library

Try out our native secp256k1 implementation and Schnorr signatures. Designed for developers building secure, long-lasting Bitcoin applications.

πŸ“˜ Read the Docs πŸ’» View on GitHub