sign

open fun sign(coin: CoinType, input: Array<Byte>): Array<Byte>

Signs an arbitrary message to prove ownership of an address for off-chain services.

Return

The serialized data of a `SigningOutput` proto object. (e.g. TW.Ethereum.Proto.MessageSigningOutput).

Parameters

coin

The given coin type to sign the message for.

input

The serialized data of a signing input (e.g. TW.Ethereum.Proto.MessageSigningInput).