trait TransactionSignatureChecker extends AnyRef
Created by chris on 2/16/16. Responsible for checking digital signatures on inputs against their respective public keys
- Alphabetic
- By Inheritance
- TransactionSignatureChecker
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def checkSchnorrSignature(txSigComponent: TxSigComponent, pubKey: SchnorrPublicKey, schnorrSignature: SchnorrDigitalSignature, hashType: HashType, taprootOptions: TaprootSerializationOptions): ScriptResult
- def checkSchnorrSignature(txSigComponent: TxSigComponent, pubKey: SchnorrPublicKey, witness: TaprootKeyPath, taprootOptions: TaprootSerializationOptions): ScriptResult
- See also
https://github.com/bitcoin/bitcoin/blob/8ae4ba481ce8f7da173bef24432729c87a36cb70/src/script/interpreter.cpp#L1695
- def checkSigTapscript(txSignatureComponent: TxSigComponent, pubKey: SchnorrPublicKey, signature: SchnorrDigitalSignature, hashType: HashType, taprootOptions: TaprootSerializationOptions, flags: Seq[ScriptFlag]): TransactionSignatureCheckerResult
- def checkSignature(txSignatureComponent: TxSigComponent, script: Seq[ScriptToken], pubKey: ECPublicKeyBytes, signature: ECDigitalSignature, flags: Seq[ScriptFlag] = Policy.standardFlags): TransactionSignatureCheckerResult
Checks the signature of a scriptSig in the spending transaction against the given scriptPubKey & explicitly given public key This is useful for instances of non standard scriptSigs
Checks the signature of a scriptSig in the spending transaction against the given scriptPubKey & explicitly given public key This is useful for instances of non standard scriptSigs
- txSignatureComponent
the relevant transaction information for signature checking
- script
the current script state inside the interpreter - this is needed in the case of OP_CODESEPARATORS
- pubKey
the public key the signature is being checked against
- signature
the signature which is being checked against the transaction & the public key
- flags
the script flags used to check validity of the signature
- returns
a boolean indicating if the signature is valid or not
- def checkSignature(txSignatureComponent: TxSigComponent, script: Seq[ScriptToken], partialSignature: PartialSignature): TransactionSignatureCheckerResult
- def checkSignature(txSignatureComponent: TxSigComponent, partialSignature: PartialSignature): TransactionSignatureCheckerResult
- def checkSignature(txSignatureComponent: TxSigComponent, pubKey: ECPublicKey, signature: ECDigitalSignature): TransactionSignatureCheckerResult
- def checkSignature(txSignatureComponent: TxSigComponent, pubKeyBytes: ECPublicKeyBytes, signature: ECDigitalSignature): TransactionSignatureCheckerResult
- def checkTaprootHashType(hashType: HashType): Boolean
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def multiSignatureEvaluator(txSignatureComponent: TxSigComponent, script: Seq[ScriptToken], sigs: List[ECDigitalSignature], pubKeys: List[ECPublicKeyBytes], flags: Seq[ScriptFlag], requiredSigs: Long): TransactionSignatureCheckerResult
This is a helper function to check digital signatures against public keys if the signature does not match this public key, check it against the next public key in the sequence
This is a helper function to check digital signatures against public keys if the signature does not match this public key, check it against the next public key in the sequence
- txSignatureComponent
the tx signature component that contains all relevant transaction information
- script
the script state this is needed in case there is an OP_CODESEPARATOR inside the script
- sigs
the signatures that are being checked for validity
- pubKeys
the public keys which are needed to verify that the signatures are correct
- flags
the script verify flags which are rules to verify the signatures
- returns
a boolean indicating if all of the signatures are valid against the given public keys
- Annotations
- @tailrec()
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()