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

for encrypted share, clientid and encryptionpublickey should be mandatory #357

Closed
boddumanohar opened this issue Feb 19, 2023 · 1 comment · Fixed by #385
Closed

for encrypted share, clientid and encryptionpublickey should be mandatory #357

boddumanohar opened this issue Feb 19, 2023 · 1 comment · Fixed by #385
Assignees

Comments

@boddumanohar
Copy link
Contributor

when try to download an encrypted file, I get this error:

0box-sdk        [DEBUG]  2023/02/19 21:16:20.546326 filemetaworker.go:74: File meta response status: 200 OK
0box-sdk        [INFO]   2023/02/19 21:16:20.551954 filemetaworker.go:73: File Meta result:{"actual_file_hash":"774590317b96727aaa484a1087f1f444361b001eb32a2b4c3ca221fb25f437a7","actual_file_size":120752,"actual_thumbnail_hash":"","actual_thumbnail_size":0,"allocation_id":"fa346fd2cde360df79198ab09bdd3188c646469b35274fbcfdecde1588eb91f0","chunk_size":65536,"commit_meta_txns":[],"content_hash":"a98cd73a4bfaad06cd3e995c01bcaa709fe466ee37fbe4ebc76a81723e96b918","created_at":1676837451,"custom_meta":"","encrypted_key":"t9Kwc5W4muQEVIZ3kJk6eqWOzbdK3A3bdk/cRH9ni44=","hash":"a4b31e1de8cf273b87fe1d6cdae409b038fa3eaa41d41f5f30bfab118ce1ce41","lookup_hash":"e2d1f02690fc33ad0533dfbad0547fd16f43a7d9c609d9f97f12c176a5395830","merkle_root":"7dd532ae21ac5896e7aee0b699b8fb268f6fa6e06ecb6a2e625f93929a8d6c39","mimetype":"application/octet-stream","name":"go4.sum","num_of_blocks":2,"path_hash":"e2d1f02690fc33ad0533dfbad0547fd16f43a7d9c609d9f97f12c176a5395830","size":121296,"thumbnail_hash":"","thumbnail_size":0,"type":"f","updated_at":1676837451}
0box-sdk        [DEBUG]  2023/02/19 21:16:20.552149 filemetaworker.go:74: File meta response status: 200 OK
0box-sdk        [INFO]   2023/02/19 21:16:20.552884 downloadworker.go:339: Downloading file with size: 120752 from start block: 0 and end block: 2. Actual size per blobber: 131072
 0 / 120752 [----------------------------------------------------------------------------------------------------------------------------------------]   0.00%0box-sdk        [INFO]   2023/02/19 21:16:20.570672 downloadworker.go:399: Downloading block 1 - 2
0box-sdk        [ERROR]  2023/02/19 21:16:20.732247 downloadworker.go:198: Unsuccessful download. Error: response_error: invalid Ed25519 curve point
0box-sdk        [ERROR]  2023/02/19 21:16:20.773446 downloadworker.go:198: Unsuccessful download. Error: response_error: invalid Ed25519 curve point
 0 / 120752 [-------------------------------------------------------------------------------------------------------------------------------------]   0.00% 0s
Error in file operation: Download failed for block 1.
download_failed: 2 failed blobbers exceeded 1 remaining blobbers. Download errors: Error Unsuccessful download. Error: response_error: invalid Ed25519 curve point from http://100.78.70.98:5055 Error Unsuccessful download. Error: response_error: invalid Ed25519 curve point from http://100.78.70.98:5056
@boddumanohar boddumanohar self-assigned this Feb 19, 2023
@boddumanohar
Copy link
Contributor Author

boddumanohar commented Feb 20, 2023

works with these commands:

zbox upload --encrypt --allocation $alloc --localpath ./0chain/0box/go.sum --remotepath /go4.sum
zbox share --allocation=$alloc --remotepath /go4.sum --clientid $receiver_client_id --encryptionpublickey $receiver_encryption_key
zbox download --wallet wallet2.json --remotepath /go4.sum --localpath ./ --authticket $authticket

the following things needs to be taken care as a part of zbox share

  1. for encrypted share, clientid and encryptionpublickey should be mandatory

@boddumanohar boddumanohar changed the title zbox share is not working for encrypted files for encrypted share, clientid and encryptionpublickey are madatory Feb 20, 2023
@boddumanohar boddumanohar changed the title for encrypted share, clientid and encryptionpublickey are madatory for encrypted share, clientid and encryptionpublickey should be mandatory Feb 20, 2023
@boddumanohar boddumanohar changed the title for encrypted share, clientid and encryptionpublickey should be mandatory for encrypted share, clientid and encryptionpublickey should be mandatory Feb 20, 2023
@SinanEkm SinanEkm linked a pull request Mar 12, 2023 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants