Skip to content

Conversation

@thesimplekid
Copy link
Collaborator

Implements NUT-26 specification providing bech32m encoding (CREQ-B) as an alternative to the CBOR format (CREQ-A). The new encoding offers improved QR code compatibility and more efficient encoding.

  • Add complete NUT-26 encoding/decoding implementation with TLV structure
  • Update PaymentRequest::from_str to support both CREQ-A and CREQ-B formats
  • Add comprehensive test vectors and documentation
  • Add benchmark example for encoding performance comparison

Description


Notes to the reviewers


Suggested CHANGELOG Updates

CHANGED

ADDED

REMOVED

FIXED


Checklist

@github-actions
Copy link
Contributor

This PR is stale because it has been open for 60 days with no activity.

@github-actions github-actions bot added the stale label Dec 13, 2025
@thesimplekid thesimplekid added keep-open new nut This PR is held pending the merge of a new or updated NUT and removed stale labels Dec 13, 2025
@thesimplekid thesimplekid marked this pull request as ready for review December 19, 2025 15:40
Implements NUT-26 specification providing bech32m encoding (CREQ-B) as an
alternative to the CBOR format (CREQ-A). The new encoding offers improved
QR code compatibility and more efficient encoding.

- Add complete NUT-26 encoding/decoding implementation with TLV structure
- Update PaymentRequest::from_str to support both CREQ-A and CREQ-B formats
- Add comprehensive test vectors and documentation
- Add benchmark example for encoding performance comparison
@thesimplekid thesimplekid added this to the 0.15.0 milestone Jan 11, 2026
@thesimplekid thesimplekid merged commit 14f9c56 into cashubtc:main Jan 11, 2026
89 checks passed
@thesimplekid thesimplekid deleted the nut18_bech32 branch January 11, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

keep-open new nut This PR is held pending the merge of a new or updated NUT

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant