generateBCSTransaction static method

Uint8List generateBCSTransaction(
  1. AptosAccount accountFrom,
  2. RawTransaction rawTxn
)

Implementation

static Uint8List generateBCSTransaction(AptosAccount accountFrom, RawTransaction rawTxn) {
  final txnBuilder = TransactionBuilderEd25519(
    accountFrom.pubKey().toUint8Array(),
    (Uint8List signingMessage) => Ed25519Signature(accountFrom.signBuffer(signingMessage).toUint8Array())
  );

  return txnBuilder.sign(rawTxn);
}