2

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

2

I think this Reddit thread might help :)

Your Answer

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

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