BitcoinSignatureVerifier class

Constructors

BitcoinSignatureVerifier.fromKeyBytes(List<int> publicKey)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
publicKeyPoint() ProjectiveECCPoint
toString() String
A string representation of this object.
inherited
verifyBip340Signature({required List<int> digest, required List<int> signature, List<int>? tapTweakHash}) bool
Verifies a BIP-340 Schnorr signature using a public key.
verifyECDSADerSignature({required List<int> digest, required List<int> signature}) bool
Verifies an ECDSA DER-encoded signature against a given digest.
verifyMessageSignature({required List<int> message, required List<int> signature, String messagePrefix = BitcoinSignerUtils.signMessagePrefix}) bool
Verifies a Bitcoin-signed message signature.
verifySchnorrSignature({required List<int> digest, required List<int> signature}) bool
Verifies a Schnorr(old style) signature for a given digest.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

recoverPublicKey({required List<int> message, required List<int> signature, String messagePrefix = BitcoinSignerUtils.signMessagePrefix}) ECDSAPublicKey
Recovers the ECDSA public key from a Bitcoin signed message.
tweakKey({required BigInt xBig, required List<int> tapTweakHash}) ProjectiveECCPoint
Tweaks a public key for Taproot (BIP-341).
verifyBip340SignatureUsingXOnly({required List<int> xOnly, required List<int> digest, required List<int> signature, List<int>? tapTweakHash}) bool
Verifies a BIP-340 Schnorr signature using an x-only public key.