KeyringController icon indicating copy to clipboard operation
KeyringController copied to clipboard

Question: regarding getEncryptionPublicKey

Open cosminm-affnd opened this issue 4 years ago • 1 comments

Is the key returned by getEncryptionPublicKey intended to be the wallet public key? Or is it something else?

In other words, should this test be green:

      await keyring.deserialize([testAccount.key]);

      const encryptionPublicKeyB64 = await keyring.getEncryptionPublicKey(testAccount.address);
      const encryptionPublicKey = Buffer.from(naclUtil.decodeBase64(encryptionPublicKeyB64));
      
      const address = ethUtil.publicToAddress(encryptionPublicKey);
      const addressHex = ethUtil.bufferToHex(address);
      expect(addressHex).toBe(testAccount.address);

cosminm-affnd avatar Aug 16 '21 08:08 cosminm-affnd

I Have the key and the string of wallet data to empale somewhere. Requesting access to the priv key to make contribution and gain access to. Funds remaining.

twilz2024 avatar Jan 30 '24 05:01 twilz2024