Static
fromComputes the deterministic public key for a given private key.
The PrivateKey object or the private key bytes
A new PublicKey object
Static
liftXLifts a 32-byte x-only coordinate into a full secp256k1 point (x, y).
32-byte x-coordinate
65-byte uncompressed public key (starts with 0x04
)
Static
modComputes modular exponentiation: (base^exp) % mod. Used for computing modular square roots.
The base value
The exponent value
The modulus value
The result of the modular exponentiation
Static
sqrtComputes sqrt(a) mod p
using Tonelli-Shanks algorithm.
This finds y
such that y^2 ≡ a mod p
.
The value to find the square root of
The prime modulus
The square root of a
mod p
Utility class for Multikey operations/ PublicKeyUtils