verify Scripts
fun verifyScripts(scriptSig: ByteArray, scriptPubKey: ByteArray): Boolean
Content copied to clipboard
fun verifyScripts( scriptSig: ByteVector, scriptPubKey: ByteVector, witness: ScriptWitness): Boolean
Content copied to clipboard
fun verifyScripts( scriptSig: ByteArray, scriptPubKey: ByteArray, witness: ScriptWitness): Boolean
Content copied to clipboard
verify a script sig/script pubkey pair:
- parse and run script sig
- parse and run script pubkey using the stack generated by the previous step
- check the final stack
- extract and run embedded pay2sh scripts if any and check the stack again
Return
true if the scripts were successfully verified
Parameters
script Sig
signature script
script Pub Key
public key script