check Signature
fun checkSignature( pubKey: ByteArray, sigBytes: ByteArray, scriptCode: ByteArray, signatureVersion: Int): Boolean
Content copied to clipboard
Return
true if the signature is valid
Parameters
pub Key
public key
sig Bytes
signature, in Bitcoin format (DER encoded + 1 trailing sighash bytes)
script Code
current script code
signature Version
version (legacy or segwit)
fun checkSignature( pubKey: ByteVector, sigBytes: ByteVector, scriptCode: ByteVector, signatureVersion: Int): Boolean
Content copied to clipboard