Static
Private
checkCheck if a given public key is the public key for a claimed address.
Public key to be tested
Address claimed to be derived based on the provided public key
True if the claimedAddress can be derived by the provided publicKey, false if otherwise
Static
signSign a BIP-322 signature from P2WPKH, P2SH-P2WPKH, and single-key-spend P2TR address and its corresponding private key. Network is automatically inferred from the given address.
Private key used to sign the message
Address to be signing the message
message_challenge to be signed by the address
BIP-322 simple signature, encoded in base-64
Class that signs BIP-322 signature using a private key. Reference: https://github.com/LegReq/bip0322-signatures/blob/master/BIP0322_signing.ipynb