Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 869 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 869 Bytes

Bitcoin ECC Demo

This library is for demonstration purposes only!

Implements ECDSA and Schnorr signatures on curve secp256k1 as used in Bitcoin. This library implements ECC using the bigint type in JavaScript and does not use any third party libraries for calculations.

Math primitives:

  • FiniteField - defines a finite field and its math operations
  • Curve - defines an elliptic curve
  • CurvePoint - defines a point on an elliptic curve and its math operations
  • Secp256k1 - Definition for curve secp256k1

Signature schemes:

  • ECDSA - Elliptic Curve Digital Signature Algorithm
  • Schnorr - Shcnorr Signature Algorithm as defined in BIP340