stow-box icon indicating copy to clipboard operation
stow-box copied to clipboard

permission form. "Unable to encrypt file for viewer. Is the viewer public key correct?"

Open mickaelgermemont opened this issue 6 years ago • 0 comments

i go to the /permissions page. i fill the form. i entered public key '0x3cf47306fc3ef417a1a7562beff912c92cadfa06a2d894ea1d1804910c792e3d190999fdf863a49d985486b5e5530fb2297d351834712d624d1a270f8dd62401' i click 'add permission'. i receive error "Unable to encrypt file for viewer. Is the viewer public key correct?".

code does: reencrypted = await encrypt(new Buffer(viewerEncyptionPublicKey, 'hex'), decryptedData);

issue solve if code is: reencrypted = await encrypt(viewerEncyptionPublicKey, decryptedData);

see file actions/PermissionsActions.js line 167

mickaelgermemont avatar Aug 26 '18 16:08 mickaelgermemont