Skip to content

Conversation

jstuczyn
Copy link
Contributor

@jstuczyn jstuczyn commented Aug 28, 2025

implements naive versions NET-451 and NET-450 as part of NET-341

depends on #5957

relevant API changes:

nym-gateway-requests

Changed

  • bumped up CURRENT_PROTOCOL_VERSION from 5 to 6 ('upgrade mode')
  • ServerResponse::Authenticate contains upgrade_mode flag to indicate whether gateway thinks the system is undergoing the upgrade
  • ServerResponse::Register contains upgrade_mode flag to indicate whether gateway thinks the system is undergoing the upgrade
  • ServerResponse::Bandwidth contains upgrade_mode flag to indicate whether gateway thinks the system is undergoing the upgrade
  • ServerResponse::Send contains upgrade_mode flag to indicate whether gateway thinks the system is undergoing the upgrade

nym-credentials-interface

Added

  • BandwidthCredential to act as a wrapper for different types of credentials. current the old CredentialSpendingData (i.e. ticketbooks) and jwt tokens issued during upgrade mode. in the future it will also include emergency mode credentials issued by signer quorum:

nym-authenticator-requests

Added

  • BandwidthClaim type to wrap around BandwidthCredential and to also include an explicit type (i.e. mixnet/wg entry/exit)
  • v6 version of authenticator messages
    • each response type includes additional upgrade_mode_enabled: bool field
    • FinalMessage uses BandwidthClaim instead of CredentialSpendingData for the credential field

Changed

  • FinalMessage trait method credential() now returns Option<BandwidthClaim> rather than Option<CredentialSpendingData> to allow the upgrade mode flow where user would not have a valid zk-nym

This change is Reviewable

Copy link

vercel bot commented Aug 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
nym-explorer-v2 Ready Ready Preview Comment Sep 2, 2025 9:18am
nym-node-status Ready Ready Preview Comment Sep 2, 2025 9:18am
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
docs-nextra Ignored Ignored Preview Sep 2, 2025 9:18am

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