sign Transaction
open suspend override fun signTransaction(message: ByteArray, signer: Account): Result<ByteArray, Exception>
Creates a cryptographic signature for a given message using a signer's private key.
This is a local, synchronous operation that does not require a network connection. It is a fundamental building block for creating valid transactions.
Return
A ByteArray representing the resulting signature.
Parameters
message
The raw message bytes to be signed (typically serialized transaction data).
signer
The Account containing the private key to sign with.