peercoin / coinlib

The most feature-complete *coin library in the entire Dart/Flutter ecosystem.
BSD 3-Clause "New" or "Revised" License
6 stars 11 forks source link

NUMSPublicKey #18

Closed MatthewLM closed 1 year ago

MatthewLM commented 1 year ago

A new NUMSPublicKey will inherit ECPublicKey and constructs a public key that is tweaked from a NUMS key using a random "r" scalar as suggested in BIP0341. A generate constructor will use a securely random scalar or a fromRTweak constructor will take a ECPrivateKey to tweak the key. The scalar will be provided by a rTweak getter.

MatthewLM commented 1 year ago

Completed and merged. The rTweak is just a byte array and not an ECPrivateKey.