Skip to content

Commit

Permalink
Merge pull request #71 from oceanprotocol/feature-download-encryption
Browse files Browse the repository at this point in the history
Feature download encryption
  • Loading branch information
paulo-ocean authored Nov 6, 2023
2 parents f65f0b2 + 6e42104 commit 05cf0b2
Show file tree
Hide file tree
Showing 12 changed files with 2,206 additions and 45 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.js
dist/
.eslintrc
.eslintrc

29 changes: 24 additions & 5 deletions docs/Ocean Node.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,28 @@
"name": "8000 - getPeer",
"request": {
"method": "GET",
"header": []
},
"response": []
"header": [],
"url": {
"raw": "http://127.0.0.1:8000/getP2pPeer?peerId=16Uiu2HAmQU8YmsACkFjkaFqEECLN3Csu6JgoU3hw9EsPmk7i9TFL",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "8000",
"path": [
"getP2pPeer"
],
"query": [
{
"key": "peerId",
"value": "16Uiu2HAmQU8YmsACkFjkaFqEECLN3Csu6JgoU3hw9EsPmk7i9TFL"
}
]
}
}
},
{
"name": "8000 - advertiseDid",
Expand Down Expand Up @@ -106,7 +125,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"command\":\"download\",\n \"node\": \"16Uiu2HAkxiemC25d2iZWTkVRQmZr9L9h3RNGnhiUWXEonmsPEC8y\"\n}"
"raw": "{\n \"command\":\"downloadURL\",\n \"node\": \"16Uiu2HAkxiemC25d2iZWTkVRQmZr9L9h3RNGnhiUWXEonmsPEC8y\",\n \"url\": \"http://example.com\",\n \"aes_encrypted_key\": \"0x1234567890abcdef\"\n}"
},
"url": {
"raw": "http://127.0.0.1:8000/directCommand",
Expand Down Expand Up @@ -138,7 +157,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"command\":\"download\",\n \"node\": \"16Uiu2HAkvfXgYiFhsHRJvcdtmMs3aopgoRphb5xnXMh3dxCRuuX\"\n}"
"raw": "{\n \"command\":\"downloadURL\",\n \"node\": \"16Uiu2HAkvfXgYiFhsHRJvcdtmMs3aopgoRphb5xnXMh3dxCRuuX\",\n \"url\": \"http://example.com\",\n \"aes_encrypted_key\": \"0x1234567890abcdef\"\n}"
},
"url": {
"raw": "http://127.0.0.1:8001/directCommand",
Expand Down
Loading

0 comments on commit 05cf0b2

Please sign in to comment.