peercoin / coinlib

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

NUMSPublicKey #18

Closed MatthewLM closed 8 months ago

MatthewLM commented 10 months 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 8 months ago

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