-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add support for an OP_RETURN parameter? #7
Comments
Comment by @jonas-lundqvist:
Response by @yashasvi-ranawat:
|
Thanks again for the issue @yashasvi-ranawat. So I understand, what use cases do you see for the OP_RETURN-requesting parameter? Does the OP_RETURN/data-carrier output get appended to the transaction in addition to the output defined by all the other parameters? It seems like certain application-specific clients could support publishing simple messages on-chain using the typical non-standard extension strategy (e.g. a Would it be reasonable to have this be a separate CHIP/specification focused on your particular use case(s)? |
For example, if a service sells tokens (eg event ticket tokens), as cashtokens, then it can specify a static URI with an OP_RETURN requesting parameter. This way the back-end service can differentiate the kind of tokens requested by a payee without the need to support a direct communicating channel with the payee. This utilises the BCH network as a payment and communication network for accepting payments. This way the service can host a static ipfs website, with payment URIs and mitigate downtime due to heavy payment channel traffic.
Yes.
I like this approach too.
I think the other way would be to use BIP21's req- parameter (so a "req-d", for example). |
I'm not sure if I follow, doesn't the user already have a direct line of communication with the server in this instance? It seems much more complicated to scrape information from P2P network transactions than to accept a POST request in addition to the GET requests that the user has presumably made in order to receive the URI in the first place. I definitely expect matching of buyers and sellers entirely on-chain to be a big use case (I'll call "over-the-blockchain"/OTB trading). That can be done without a backend though, just requires wallets to support the required covenant system(s) and UTXO selection. Anyways, I think my preferred solution here is something like in #3 (comment):
With something like this, it would be possible to make the trade be a PayJoin transaction in which the web service actually offers some UTXO(s) with the tokens in question, letting the user contribute their UTXOs, and the swap being made in an atomic transaction (which also happens to both prevent payment fraud and reduce privacy loss). It would also coincidentally be possible to request even multiple OP_RETURN outputs in a single transaction via the one-way communication option. |
Not really, when the website is static and hosted on ipfs.
I see that the CHIP also removes req- parameter from BIP21. I don't think that's the best way though. |
#3 comment is reasonable. This issue can be closed. |
Ah, I see! Yeah, I think a transaction templating parameter/protocol would work particularly well in that case. Thanks again for the issues! I'll close this issue for now, but feel free to comment if we should re-open. |
Breaking this out from #6 by @yashasvi-ranawat:
The text was updated successfully, but these errors were encountered: