rawToSigned method

SignedTransaction rawToSigned(
  1. RawTransaction rawTxn
)

Implementation

SignedTransaction rawToSigned(RawTransaction rawTxn) {
  final signingMessage = TransactionBuilder.getSigningMessage(rawTxn);
  final signature = signingFunction(signingMessage);

  final authenticator = TransactionAuthenticatorEd25519(
    Ed25519PublicKey(publicKey),
    signature as Ed25519Signature,
  );

  return SignedTransaction(rawTxn, authenticator);
}