Skip to content

Commit

Permalink
Add isDigest
Browse files Browse the repository at this point in the history
  • Loading branch information
Akamig committed Oct 30, 2023
1 parent cf8e105 commit ecf3e8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion @planetarium/account-aws-kms/src/AwsKmsAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ export class AwsKmsAccount implements Account {
return Promise.resolve(this.publicKey);
}

async sign(message: Message): Promise<Signature> {
async sign(message: Message, isDigest: boolean = false): Promise<Signature> {
const cmd = new SignCommand({
KeyId: this.keyId,
Message: message,
MessageType: isDigest ? "DIGEST" : "RAW",
SigningAlgorithm: "ECDSA_SHA_256",
});
const response = await this.#client.send(cmd);
Expand Down

0 comments on commit ecf3e8d

Please sign in to comment.