graphprotocol / graphprotocol/hypergraph
Check if authorPublicKey in KeyBoxes matches the one in the chain
Open
Nobody has claimed this yet.
Improved Sync
- Dominant language
- TypeScript
- Stars
- 22
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
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,
})),
});
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the transaction.spaceKeyBox.createMany call shown in the issue and trace how keyBoxes and the chain's authorPublicKey are obtained. Determine the expected match condition, then add coverage for matching and non-matching keys so completion is demonstrated by the relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- blockchain, cryptography
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100