signHashX

suspend fun signHashX(preimage: ByteArray)

Adds a hash(x) signature by revealing the preimage.

This is used for hash(x) signers where the signature is the preimage itself, and the signer key is the hash of the preimage.

The signature hint is the last 4 bytes of the hash of the preimage.

Parameters

preimage

The preimage bytes whose hash equals the signer's hash