Skip to content

javascript ecdsa generator, specifically secp256k1 properties, using jordon form matrices

License

Notifications You must be signed in to change notification settings

Igor-S74/ECDSA_secp256k1_JordonMatrix_nodejs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECDSA SECP256k1 Jordon Matrix

contains javascript ecdsa generator, specifically secp256k1 properties, using jordon form matrices

Using the R,S and Z values, you can generate a public key.
This example code demonstrates how to get public keys using RSZ values from a transaction input.
The output from a typical RSZ will produce 2 possible public keys,
If the public key matches the one used in the TX input, or generates the address used in the TX Input's previous output, then it can be considered a valid transaction that was signed using the private key of the found public key.

pseudocode to get public key point
pubKey = (ecPoint(K) * (S/R)) - ecPoint(Z/R))

NodeJS

$ npm install big-integer
$ nodejs getPubKeyFromRSZ.js

Python 3

$ python getPubKeyFromRSZ.py

About

javascript ecdsa generator, specifically secp256k1 properties, using jordon form matrices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 65.0%
  • Python 35.0%