Skip to content

Commit

Permalink
fix: remove authSig (need to fix decryptToString and `decryptToFile…
Browse files Browse the repository at this point in the history
…` return types
  • Loading branch information
Ansonhkg committed May 1, 2024
1 parent 2695204 commit 7bc363d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/encryption/src/lib/encryption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export async function decryptFromJson<T extends DecryptFromJsonProps>(
? ReturnType<typeof decryptToString>
: never
> {
const { authSig, sessionSigs, parsedJsonData, litNodeClient } = params;
const { sessionSigs, parsedJsonData, litNodeClient } = params;

// -- validate
const paramsIsSafe = safeParams({
Expand All @@ -153,7 +153,6 @@ export async function decryptFromJson<T extends DecryptFromJsonProps>(
ciphertext: parsedJsonData.ciphertext,
dataToEncryptHash: parsedJsonData.dataToEncryptHash,
chain: parsedJsonData.chain,
authSig,
sessionSigs,
},
litNodeClient
Expand All @@ -169,7 +168,6 @@ export async function decryptFromJson<T extends DecryptFromJsonProps>(
ciphertext: parsedJsonData.ciphertext,
dataToEncryptHash: parsedJsonData.dataToEncryptHash,
chain: parsedJsonData.chain,
authSig,
sessionSigs,
},
litNodeClient
Expand Down Expand Up @@ -444,7 +442,6 @@ export const encryptFileAndZipWithMetadata = async (
params: EncryptFileAndZipWithMetadataProps
): Promise<any> => {
const {
authSig,
sessionSigs,
accessControlConditions,
evmContractConditions,
Expand All @@ -460,7 +457,6 @@ export const encryptFileAndZipWithMetadata = async (
const paramsIsSafe = safeParams({
functionName: 'encryptFileAndZipWithMetadata',
params: {
authSig,
sessionSigs,
accessControlConditions,
evmContractConditions,
Expand Down Expand Up @@ -545,13 +541,12 @@ export const encryptFileAndZipWithMetadata = async (
export const decryptZipFileWithMetadata = async (
params: DecryptZipFileWithMetadataProps
): Promise<DecryptZipFileWithMetadata | undefined> => {
const { authSig, sessionSigs, file, litNodeClient } = params;
const { sessionSigs, file, litNodeClient } = params;

// -- validate
const paramsIsSafe = safeParams({
functionName: 'decryptZipFileWithMetadata',
params: {
authSig,
sessionSigs,
file,
litNodeClient,
Expand Down

0 comments on commit 7bc363d

Please sign in to comment.