You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## tl;dr
- Adds method to recover the signer from payer envelopes (#232)
- Refactors domain separation for jwt's and payer envelopes
### AI Assisted Summary
Introduced domain separation for payer signatures, and added functionality to recover signer addresses from payer envelopes.
### What changed?
- Created a new `constants` package with domain separation labels for JWT and payer signatures.
- Updated the JWT signing method to use the new constant for domain separation.
- Implemented a `RecoverSigner` method for `PayerEnvelope` to extract the signer's address.
- Added utility functions for hashing and signing payer envelopes.
- Expanded test coverage for envelope signer recovery.
### Why make this change?
This change enhances security and consistency by introducing domain separation for signatures. It also adds the ability to recover signer addresses from payer envelopes, which is crucial for verifying the authenticity of messages and implementing payer-based features in the system.
No description provided.
The text was updated successfully, but these errors were encountered: