Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Question: regarding getEncryptionPublicKey #121

@cosminm-affnd

Description

@cosminm-affnd

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions