Skip to content

Remove pjos parameter from BIP77 example URI#1887

Closed
spacebear21 wants to merge 1 commit intobitcoin:masterfrom
spacebear21:patch-3
Closed

Remove pjos parameter from BIP77 example URI#1887
spacebear21 wants to merge 1 commit intobitcoin:masterfrom
spacebear21:patch-3

Conversation

@spacebear21
Copy link
Copy Markdown
Contributor

The pjos=0 parameter disables output substitution, but by default it is omitted to enable output substitution and allow use cases such as transaction cut-through. The reference implementation omits the pjos parameter by default.

The `pjos=0` parameter disables output substitution, but by default it is omitted to enable output substitution and allow use cases such as transaction cut-through. The [reference implementation](https://github.com/payjoin/rust-payjoin/blob/5839d20d67cca3a5b9d69357b8702f2d2fc24635/payjoin/src/core/receive/v2/mod.rs#L392) omits the `pjos` parameter by default.
@jonatack jonatack added Proposed BIP modification Pending acceptance This BIP modification requires sign-off by the champion of the BIP being modified labels Jul 1, 2025
time](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_16).

For example, a properly encoded endpoint Bitcoin URI looks like this
`bitcoin:tb1q6q6de88mj8qkg0q5lupmpfexwnqjsr4d2gvx2p?amount=0.00666666&pjos=0&pj=HTTPS://PAYJO.IN/TXJCGKTKXLUUZ%23RK1Q0DJS3VVDXWQQTLQ8022QGXSX7ML9PHZ6EDSF6AKEWQG758JPS2EV+OH1QYPM59NK2LXXS4890SUAXXYT25Z2VAPHP0X7YEYCJXGWAG6UG9ZU6NQ+EX1WKV8CEC`
Copy link
Copy Markdown
Member

@jonatack jonatack Jul 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable, pinging BIP authors @DanGould @nothingmuch for feedback

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is a bug in the implementation, I opened payjoin/rust-payjoin#843

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. NACK on this change but good catch for the implementation

@jonatack
Copy link
Copy Markdown
Member

jonatack commented Jul 2, 2025

Good catch @spacebear21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Pending acceptance This BIP modification requires sign-off by the champion of the BIP being modified Proposed BIP modification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants