KeyringController
KeyringController copied to clipboard
Question: regarding getEncryptionPublicKey
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);
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.