Page MenuHomePhabricator

[bip21] Introduce a spec for supporting simple token send txs
ClosedPublic

Authored by bytesofman on Sun, Nov 24, 15:07.

Details

Summary

This would make it easy for users to share token payment requests via QR code or cashtab url

While this is already possible to do using existing bip21 op_return_raw, it is not straightforward for non-developers to create such a request.

Test Plan

Proofread. To be implemented in Cashtab.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
bip21-token-spec
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 31300
Build 62098: Build Diff
Build 62097: arc lint + arc unit

Event Timeline

is the exclusion of non-send token txs on the basis that they're not a use case for QR payments?

is the exclusion of non-send token txs on the basis that they're not a use case for QR payments?

I think they could be included, but it would be more complicated. They need more params, potentially special handling depending on token type, etc.

So, for now, it's just that "send" is the first obvious use case that is being asked for. If we get a demand for other actions, we can add it in a way that doesn't interfere with this.

It makes sense for "send" to be the default token action...it's the default XEC action.

This revision is now accepted and ready to land.Mon, Nov 25, 03:57