Skip to content

fix(contracts): detect on-chain pubkey registration#53

Merged
LucienSong merged 1 commit into
mainfrom
codex/pending-pubkey-lifecycle
Jul 12, 2026
Merged

fix(contracts): detect on-chain pubkey registration#53
LucienSong merged 1 commit into
mainfrom
codex/pending-pubkey-lifecycle

Conversation

@LucienSong

Copy link
Copy Markdown
Collaborator

Summary

  • query the sender public-key registry when contract helpers choose whether to embed a key
  • keep embedding for unregistered senders even when their pending nonce is greater than zero
  • omit the key after canonical registration and update the recommended signing example

Rationale

Pending transaction admission no longer persists first-use keys. Nonce alone therefore cannot determine whether reference-mode signing is available when multiple transactions are queued before the first is included.

Verification

  • npm test (142 passed, 1 skipped)
  • npm run typecheck
  • git diff --check

@LucienSong
LucienSong marked this pull request as ready for review July 12, 2026 18:14
@LucienSong
LucienSong merged commit 6f2cf27 into main Jul 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant