Skip to content

fix: allow omitted optional public key - #66

Merged
leopoldjoy merged 1 commit into
mainfrom
audit/allow-omitted-public-key
Jul 31, 2026
Merged

fix: allow omitted optional public key#66
leopoldjoy merged 1 commit into
mainfrom
audit/allow-omitted-public-key

Conversation

@leopoldjoy

Copy link
Copy Markdown
Contributor

Summary

  • accept an omitted optional public_key field as an unset pointer
  • preserve explicit null handling and reject explicit empty byte strings
  • add validation coverage for omitted, null, empty, and valid public keys

Audit finding

Addresses external finding #8.

Tests

  • forge fmt --check
  • forge test --match-path test/IndefiniteLengthCbor.t.sol (68 passed)
  • forge build --sizes
  • NitroValidator runtime: 17,287 bytes

Co-authored-by: OpenCode <opencode-noreply@coinbase.com>
@leopoldjoy
leopoldjoy marked this pull request as ready for review July 27, 2026 13:41
@leopoldjoy
leopoldjoy merged commit 3581cce into main Jul 31, 2026
8 checks passed
@leopoldjoy
leopoldjoy deleted the audit/allow-omitted-public-key branch July 31, 2026 14:43
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.

2 participants