{"repo":"21-DOT-DEV/swift-secp256k1","free":true,"listed":false,"github":"https://github.com/21-DOT-DEV/swift-secp256k1","clone":"git clone https://github.com/21-DOT-DEV/swift-secp256k1.git","description":"Swift cryptography library for Bitcoin and Nostr. ECDSA, Schnorr, ECDH, and zero-knowledge proofs on secp256k1. Apple platforms and Linux.","language":"Swift","stars":156,"topics":["taproot","secp256k1","swift","schnorr","bitcoin","ecdsa","ecdh","zero-knowledge","swift-package-manager","cryptography"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"🔐 swift-secp256k1 Previously known as GigaBitcoin/secp256k1.swift (module renamed to P256K ). Swift cryptography library for Bitcoin and Nostr. ECDSA, Schnorr Signatures, Elliptic Curve Diffie-Hellman (ECDH), and zero-knowledge proofs on secp256k1 , Bitcoin's elliptic curve. The P256K module wraps libsecp256k1 from Bitcoin Core. 🌐 Project page · 📚 Documentation [!IMPORTANT] secp256k1 is not Apple's P256 curve. CryptoKit's P256 is NIST secp256r1 (the r is for random); this library's P256K is secp256k1 (the k is for Koblitz). Keys and signatures don't interoperate between the two. CryptoSwift and Apple's CommonCrypto also do not implement secp256k1. See Why CryptoKit's P256 can't sign Bitcoin or Nostr. Contents - Features - Installation - Package Traits - Swift Versions - Usage Examples - Security - Contributing - License Features - Provide lightweight ECDSA & Schnorr Signatures functionality - Support simple and advanced usage, including BIP-327 and BIP-340 - Expose libsecp256k1 bindings for full control of the implementation - Offer a familiar API design inspired by Swift Crypto - Maintain automatic updates for Swift and libsecp256k1 - Ensure availability for Linux and Apple platform ecosystems Installation Add swift-secp256k1 to your Package.swift : Then include P256K as a target dependency: Using CocoaPods, evaluating in a playground first, or want the full Xcode + plugin-trust walkthrough? See Getting Started. Package Traits This package uses SE-0450 Package Traits (Swi","default_branch":null,"files":null,"tree":[],"storefront":"/r/21-DOT-DEV","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/21-DOT-DEV/swift-secp256k1/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}