preImageHashes

open fun preImageHashes(coinType: CoinType, txInputData: Array<Byte>): Array<Byte>

Obtains pre-signing hashes of a transaction. We provide a default `PreSigningOutput` in TransactionCompiler.proto. For some special coins, such as bitcoin, we will create a custom `PreSigningOutput` object in its proto file.

Return

serialized data of a proto object `PreSigningOutput` includes hash.

Parameters

coin

coin type.

txInputData

The serialized data of a signing input