I'm trying to encrypt data/files before uploading them to IPFS and I want to do this using metamask provided public and private keys. For this, I have tried using eth_getEncryptionPublicKey but this gives me a public key of length 48 characters which is similar to ZvpXeyKc1iJbidfr0TL7BAmyofkCdaPUvVvcDI/FEWc= also I'm using vanilla js so can't find a way to use eth-sig-util

Can someone suggest some algorithm that supports this public key length or help me use eth-sig-util into js

1 Answer 1


I think this Reddit thread might help :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.