Get the decompressed public key from a compressed public key. Throws if the public key is invalid.
Derive the public key from a private key. Returns the public key in compressed form.
Add a tweak to the private key. Will throw an error if the resulting key is invalid, e.g. when the tweak is larger than n, or if Ki = 0.
Add a tweak to the public key. Will throw an error if the resulting key is invalid, e.g. when the tweak is larger than n, or if Ki is the point at infinity.
All parameters defined by the Secp256k1 curve.
Generated using TypeDoc
Get the compressed public key from a decompressed public key. Throws if the key is invalid.