Skip to content

Add error code 12003: Keyset has expired#1

Open
gudnuf wants to merge 2 commits into
mainfrom
add-keyset-expired-error-code
Open

Add error code 12003: Keyset has expired#1
gudnuf wants to merge 2 commits into
mainfrom
add-keyset-expired-error-code

Conversation

@gudnuf
Copy link
Copy Markdown
Owner

@gudnuf gudnuf commented Apr 29, 2026

Adds a new error code 12003 for expired keysets, complementing the existing 12001 (unknown keyset) and 12002 (inactive keyset).

Used when inputs or outputs reference a keyset whose final_expiry (NUT-02) has passed.

This is the spec-side counterpart to cashubtc/cdk#1946, which enforces keyset expiry by rejecting inputs and outputs for an expired keyset.

Code Description Relevant nuts
12003 Keyset has expired NUT-02, NUT-03, NUT-04, NUT-05

@gudnuf gudnuf force-pushed the add-keyset-expired-error-code branch from a410158 to eeb0da7 Compare April 29, 2026 01:02
@thesimplekid thesimplekid force-pushed the add-keyset-expired-error-code branch 3 times, most recently from 3ce1342 to e76997d Compare May 13, 2026 10:43
Adds a new error code for expired keysets, complementing the
existing 12001 (unknown keyset) and 12002 (inactive keyset).
Used when inputs or outputs reference a keyset whose final_expiry
(NUT-02) has passed.
@thesimplekid thesimplekid force-pushed the add-keyset-expired-error-code branch from e76997d to 71674ba Compare May 13, 2026 10: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