OpenZeppelin / OpenZeppelin/compact-tools

Remove caller ctx from simulator

Open
#80 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
4
Forks
5
Avg merge
15h 28m
Merged PRs (30d)
31

Description

ownPublicKey should not be used for id auth therefore the caller context feature in the simulator should be removed. ZOwnablePK relies on the coin public key + cryptographic secret nonce so the module should be refactored to only use a secret key -> then getCallerContext can be removed entirely from compact-tools

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the simulator's caller-context implementation and every use of getCallerContext in compact-tools. Trace how ownPublicKey and the secret key are used for authentication, then remove the caller-context path and verify that simulator behavior relies only on the secret key and that no references to getCallerContext remain.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
security, tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.