Open LeoComandini opened 7 months ago
I believe Jade should render elements OP_RETURNs that have a sats amount as a burn, as you suggest - but yes, agree it relies on wally.scriptpubkey_get_type()
identifying the output/script as an OP_RETURN.
Change on the wally side https://github.com/ElementsProject/libwally-core/pull/448
Jade fw 1.0.31
includes wally version 1.3.0
, which I believe includes your changes in this area - so should now be fixed. :+1:
Elements Core creates burn outputs with a single
OP_RETURN
[1]Jade uses
wally_scriptpubkey_get_type
to recognize and render OP_RETURN and burn outputs. [2][3]However
wally_scriptpubkey_get_type
considers a singleOP_RETURN
as an unknown script typeThus burn outputs consisting in
<OP_RETURN>
only are shown as "To: Unknown address".Should we change jade code to render such burn outputs with "To: Burning Asset - ..."? Or should we change wally to have
assert wally.scriptpubkey_get_type(b"\x6a") == wally.WALLY_SCRIPT_TYPE_OP_RETURN
?[1] https://github.com/ElementsProject/elements/blob/master/src/rpc/rawtransaction_util.cpp#L328-L332 [2] https://github.com/Blockstream/Jade/blob/master/main/utils/address.c#L125 [3] https://github.com/Blockstream/Jade/blob/master/main/utils/address.c#L150