createSignatureWitness method

Vkeywitness createSignatureWitness(
  1. List<int> digest
)

Creates a Vkeywitness by signing the provided digest using the private key associated with this AdaPublicKey. The digest represents the message to be signed. Returns a Vkeywitness object containing the verification key and signature.

Implementation

Vkeywitness createSignatureWitness(List<int> digest) {
  return Vkeywitness(
      vKey: publicKey().toVerificationKey(),
      signature: Ed25519Signature(sign(digest)));
}