Private Key
A bitcoin private key. A private key is valid if it is not 0 and less than the secp256k1 curve order when interpreted as an integer (most significant byte first). The probability of choosing a 32-byte string uniformly at random which is an invalid private key is negligible, so this condition is not checked by default. However, if you receive a private key from an external, untrusted source, you should call isValid() before actually using it.
Constructors
Types
Functions
Link copied to clipboard
A private key is valid if it is not 0 and less than the secp256k1 curve order when interpreted as an integer (most significant byte first). The probability of choosing a 32-byte string uniformly at random which is an invalid private key is negligible.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard