signHash

abstract fun signHash(hash: Hash256, addr: PayAddress? = null): ByteArray
abstract fun signHash(hash: ByteArray, addr: PayAddress? = null): ByteArray

Sign (using blockchain compatible Schnorr) the provided data with the provided address (this wallet must have the private key for that address), or pass null to use the common identity.

Throws