Skip to content

Commit

Permalink
update ctString type
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-xyz authored and gmesika-coti committed Oct 7, 2024
1 parent 670dbc9 commit 1556f4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/crypto_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export function decryptUint(ciphertext: ctUint, userKey: string): bigint {
return decodeUint(decryptedMessage)
}

export function decryptString(ciphertext: { value: bigint[] }, userKey: string): string {
export function decryptString(ciphertext: ctString, userKey: string): string {
let encodedStr = new Uint8Array()

for (let i = 0; i < ciphertext.value.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ export type ctBool = bigint

export type ctUint = bigint

export type ctString = bigint[]
export type ctString = { value: Array<bigint> }

0 comments on commit 1556f4f

Please sign in to comment.