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
{{ message }}
Repository navigation
Encode &ohttp= and &exp= parameters in the &pj= URL as a fragment instead of top-level bip21 params. #298
Right now Payjoin V2 encodes &ohttp= and &exp= as bip21 URI query keys since that seemed natural as bip78 used them for &pjos=. However, this may present a few problems down the line.
BIP21 parsers would otherwise need to update to support the new ohttp and exp parameters. URL parsers already parse the fragment out of a URL.
QR encoders can encode everything in the &pj= parameter in alphanumeric mode which is more dense but excludes '?', '=', '&'. Each time bip21 uri params switch therefore, the QR encoded incurs overhead to switch between alphanumeric and bytes mode which can be more costly than the advantage.
This stops introducing a precedence problem where multiple bip21 params could be used by conflicting protocols
Activity
Add pj_url that handles fragments
Add pj_url that handles fragments
Add pj_url that handles fragments
Handle fragments with uri::UrlExt trait
Handle fragments with uri::PjUrlExt trait
Handle fragments with uri::PjUrlExt trait
Handle fragments with uri::PjUrlExt trait
Handle fragments with uri::PjUrlExt trait
Handle fragments with uri::PjUrlExt trait
Handle fragments with uri::UrlExt trait
Handle fragments with uri::UrlExt trait
Handle fragments with uri::UrlExt trait
Handle fragments with uri::UrlExt trait
Handle fragments with uri::UrlExt trait
Handle fragments with uri::UrlExt trait
Handle fragments with uri::UrlExt trait
Handle fragments with uri::UrlExt trait
Parse and set `ohttp=` parameter from `pj` URL fragment (#300)