Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple NFTs #3

Closed
jonas-lundqvist opened this issue Jun 3, 2023 · 1 comment
Closed

Multiple NFTs #3

jonas-lundqvist opened this issue Jun 3, 2023 · 1 comment

Comments

@jonas-lundqvist
Copy link

Could/should the URI support a request for multiple NFTs? If so, should there be many n parameters (n=00&n=01) or one n parameter with comma separated values (n=00,01)?

If it's not allowed the specification should state that the parser must produce an error.

@bitjson
Copy link
Owner

bitjson commented Jun 16, 2023

I think no – allowing URIs to specify requirements for multiple outputs quickly compounds the complexity of implementations. In the case of NFTs, wallets now need to optimally select UTXOs for these requirements (considering fees, privacy, etc.) which quickly gets into Knapsack problem territory.

I think a better solution for this general problem is to define (in another CHIP/specification) a "template" parameter of some sort that specifies a set of complex requirements for multiple inputs and outputs, maybe across multiple transactions. Should consider both one-way and bidirectional communication, e.g.:

  • one-way: the requester can ask for an on-chain publication using a particular bitauth identity (a particular UTXO) with an OP_RETURN of some content,
  • bidirectional: the requester can contribute some input(s) for a payjoin transaction.

Anyways, I think I prefer to keep the base implementation for URIs as simple as reasonable. Right now we say:

A Bitcoin Cash Payment URI is:

  • A request for a single transaction paying to an address using a single output, where all provided parameters modify the properties of the requested output, or
  • Connection information for another protocol by which Bitcoin Cash and/or CashToken payment information is to be transmitted.

It would probably be good to clarify further that inclusion of repeated parameters should trigger an error (and I don't think we should treat commas in any special way vs. other characters for now). How does db994af look?

This was referenced Jun 16, 2023
@bitjson bitjson closed this as completed Aug 1, 2023
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

No branches or pull requests

2 participants