signWithAuth method

  1. @override
AptosAccountAuthenticatorMultiKey signWithAuth(
  1. List<int> digest, {
  2. List<AptosBasePrivateKey<AptosCryptoPublicKey<IPublicKey>, AptosAnySignature>>? signers,
})
override

Sign the digest using multiple private keys and create the authenticator. signers can be provided to select specific private keys.

Implementation

@override
AptosAccountAuthenticatorMultiKey signWithAuth(List<int> digest,
    {List<AptosBasePrivateKey>? signers}) {
  final signature = sign(digest, forAuth: true, signers: signers);
  return AptosAccountAuthenticatorMultiKey(
      publicKey: publicKey, signature: signature);
}