verifySigForData

abstract fun verifySigForData(data: ByteArray, sig: ByteArray, addr: PayAddress? = null): Boolean

verify (using blockchain compatible SHA256 and Schnorr) the provided data (the message) with the provided address (this wallet must have the private key for that address), or pass null to use the common identity. Use libnexa.verifySignedHashSchnorr or libnexa.verifySignedDataSchnorr if you need to verify a non-wallet signature with a public key. Use verifySigForHash you may use if the data has already been run through a cryptgraphic hash function.

Throws