Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add storage provider #1494

Merged
merged 20 commits into from
Nov 30, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions packages/epk-cipher/src/ethereum-private-key-cipher-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,24 @@ export default class EthereumPrivateKeyCipherProvider
}
}

/**
* Check if encryption is available
*
* @returns true if encryption is available
*/
public isEncryptionAvailable(): boolean {
return true;
}

/**
* Check if decryption is available
*
* @returns true if decryption is available
*/
public isDecryptionAvailable(): boolean {
return this.decryptionParametersDictionary.size > 0;
}

/**
* Encrypts data
*
Expand Down
2 changes: 2 additions & 0 deletions packages/integration-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@requestnetwork/epk-decryption": "0.7.1",
"@requestnetwork/epk-signature": "0.9.1",
"@requestnetwork/ethereum-storage": "0.36.1",
"@requestnetwork/lit-protocol-cipher": "0.1.0",
"@requestnetwork/multi-format": "0.19.1",
"@requestnetwork/payment-detection": "0.45.1",
"@requestnetwork/payment-processor": "0.48.0",
Expand All @@ -55,6 +56,7 @@
"@requestnetwork/transaction-manager": "0.36.1",
"@requestnetwork/types": "0.45.1",
"@requestnetwork/utils": "0.45.1",
"@requestnetwork/web3-signature": "0.8.1",
"@types/jest": "29.5.6",
"@types/node": "18.11.9",
"ethers": "5.7.2",
Expand Down
18 changes: 11 additions & 7 deletions packages/lit-protocol-cipher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,25 @@
"clean": "rm -rf dist tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
"lint": "eslint . --fix",
"lint:check": "eslint .",
"test": "jest",
"test": "yarn node --experimental-vm-modules $(yarn bin jest)",
"test:watch": "yarn test --watch"
},
"dependencies": {
"@lit-protocol/auth-browser": "6.11.2",
"@lit-protocol/auth-helpers": "6.11.2",
"@lit-protocol/constants": "6.11.2",
"@lit-protocol/lit-node-client": "6.11.2",
"@lit-protocol/types": "6.11.2",
"@lit-protocol/auth-browser": "7.0.0",
"@lit-protocol/auth-helpers": "7.0.0",
"@lit-protocol/constants": "7.0.0",
"@lit-protocol/encryption": "7.0.0",
"@lit-protocol/lit-node-client": "7.0.0",
"@lit-protocol/lit-node-client-nodejs": "7.0.0",
"@lit-protocol/types": "7.0.0",
"@requestnetwork/request-client.js": "0.50.0",
"@requestnetwork/types": "0.45.1",
"ethers": "5.7.2"
"ethers": "5.7.2",
"node-localstorage": "3.0.5"
},
"devDependencies": {
"@types/node": "18.11.9",
"@types/node-localstorage": "^1.3.3",
"jest-junit": "16.0.0",
"ts-node": "10.9.1",
"typescript": "5.1.3"
Expand Down
Loading