Skip to content

Commit

Permalink
feat: provide submission public key as part of encrypted payload
Browse files Browse the repository at this point in the history
  • Loading branch information
justynoh committed Dec 11, 2023
1 parent 2e64320 commit ca56341
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/crypto-v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ export default class CryptoV3 extends CryptoBase {
)

return {
encryptedContent,
submissionPublicKey: submissionKeypair.publicKey,
submissionSecretKey: submissionKeypair.secretKey,
encryptedContent,
encryptedSubmissionSecretKey,
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ export type FormFieldsV3 = Record<
export type EncryptedContent = string

export type EncryptedContentV3 = {
encryptedContent: EncryptedContent
submissionPublicKey: string
submissionSecretKey: string
encryptedContent: EncryptedContent
encryptedSubmissionSecretKey: EncryptedContent
}

Expand Down

0 comments on commit ca56341

Please sign in to comment.