signTransaction method

Future<TransactionReceipt> signTransaction(
  1. List<Credentials> cred,
  2. TransactionReceipt transactionReceipt,
  3. Uint8List messageToSign
)

Signs the transactionReceipt with the credentials cred. The transaction will not be sent.

Implementation

Future<TransactionReceipt> signTransaction(List<Credentials> cred,
    TransactionReceipt transactionReceipt, Uint8List messageToSign) async {
  final signatures = await _genSig(cred, messageToSign);
  return _fillMissingData(
      credentials: cred,
      transactionReceipt: transactionReceipt,
      signatures: signatures);
}