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.
A new
NUMSPublicKey
will inheritECPublicKey
and constructs a public key that is tweaked from a NUMS key using a random "r" scalar as suggested in BIP0341. Agenerate
constructor will use a securely random scalar or afromRTweak
constructor will take aECPrivateKey
to tweak the key. The scalar will be provided by arTweak
getter.