Skip to content

Check if authorPublicKey in KeyBoxes matches the one in the chain #43

@nikgraf

Description

@nikgraf

Here we directly use the authorPublicKey, but it should be matched:

      await transaction.spaceKeyBox.createMany({
        data: keyBoxes.map((keyBox) => ({
          id: `${keyBox.id}-${inviteeAccountId}`,
          nonce: keyBox.nonce,
          ciphertext: keyBox.ciphertext,
          accountId: inviteeAccountId,
          authorPublicKey: keyBox.authorPublicKey,
          spaceKeyId: keyBox.id,
        })),
      });

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions