Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ansonhkg committed Apr 30, 2024
1 parent e30165e commit 3b66113
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
2 changes: 1 addition & 1 deletion packages/encryption/src/lib/params-validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ class FileValidator implements ParamsValidator {
}

export interface AuthMaterialValidatorProps {
sessionSigs?: SessionSigsMap;
sessionSigs: SessionSigsMap;
chain?: string;
}

Expand Down
24 changes: 6 additions & 18 deletions packages/types/src/lib/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ export interface JsonSigningRetrieveRequest extends JsonAccsRequest {

export interface GetSignedTokenRequest
extends SigningAccessControlConditionRequest {
sessionSigs?: SessionSigsMap;
sessionSigs: SessionSigsMap;
}

export interface SigningAccessControlConditionRequest
Expand Down Expand Up @@ -434,7 +434,7 @@ export interface JsonExecutionSdkParams {
ipfsId?: string;

// the session signatures to use to authorize the user with the nodes
sessionSigs?: any;
sessionSigs: any;

// whether to run this on a single node or many
// targetNodeRange?: number;
Expand Down Expand Up @@ -465,11 +465,8 @@ export interface EncryptRequestBase extends MultipleAccessControlConditions {
// The chain name of the chain that this contract is deployed on. See LIT_CHAINS for currently supported chains.
chain: Chain;

// The authSig of the user. Returned via the checkAndSignAuthMessage function
authSig?: AuthSig;

// the session signatures to use to authorize the user with the nodes
sessionSigs?: SessionSigsMap;
sessionSigs: SessionSigsMap;
}

export interface EncryptRequest extends EncryptRequestBase {
Expand Down Expand Up @@ -820,11 +817,8 @@ export interface EncryptToJsonPayload extends EncryptRequestBase {
}

export interface DecryptFromJsonProps {
// The authSig of the user. Returned via the checkAndSignAuthMessage function
authSig?: AuthSig;

// the session signatures to use to authorize the user with the nodes
sessionSigs?: SessionSigsMap;
sessionSigs: SessionSigsMap;

// An instance of LitNodeClient that is already connected
litNodeClient: ILitNodeClient;
Expand All @@ -834,11 +828,8 @@ export interface DecryptFromJsonProps {

export interface EncryptFileAndZipWithMetadataProps
extends MultipleAccessControlConditions {
// The authSig of the user. Returned via the checkAndSignAuthMessage function
authSig?: AuthSig;

// the session signatures to use to authorize the user with the nodes
sessionSigs?: SessionSigsMap;
sessionSigs: SessionSigsMap;

// The chain name of the chain that this contract is deployed on. See LIT_CHAINS for currently supported chains.
chain: string;
Expand All @@ -854,11 +845,8 @@ export interface EncryptFileAndZipWithMetadataProps
}

export interface DecryptZipFileWithMetadataProps {
// The authSig of the user. Returned via the checkAndSignAuthMessage function
authSig?: AuthSig;

// the session signatures to use to authorize the user with the nodes
sessionSigs?: SessionSigsMap;
sessionSigs: SessionSigsMap;

// The zip file blob with metadata inside it and the encrypted asset
file: File | Blob;
Expand Down

0 comments on commit 3b66113

Please sign in to comment.