Open stepansnigirev opened 3 years ago
Acknowledged. Will add to backlog.
I agree that the showing of junk outputs and only raising the error later is suboptimal.
In the interim I may just tidy it up to raise the error earlier if commitments are missing for blinded outputs.
Not arguing with the longer-term item to handle externally blinded outputs/txs - just until then probably cleaner/safer to error early.
@stepansnigirev [Some of] this should be included in the next Jade fw release - 0.1.34
.
ie.
sign-liquid-tx:
get-commitments:
[update 10th May]
Also for this next fw release (0.1.34
):
Outstanding atm:
0.1.34
, but yes, accept this needs to be handled.FYI 0.1.34
is now released, and should support generic liquid multisig and external blinding.
It looks like Jade only can sign transactions that were blinded by Jade itself - values and assets are displayed correctly only if I pass commitments that contain
hmac
field received from Jade during blinding.If I pass
None
for all commitments it displays garbage on screen and then throws an error:If I pass correct commitments but without
hmac
field - it throws a different error:This means that:
I suggest that you allow commitments that do not contain
hmac
field because HW still can verify correctness of asset commitment and value commitment just by runningsecp256k1_generator_generate_blinded
andsecp256k1_pedersen_commit
.Also would be nice if blinded outputs with unknown blinding factors are displayed as
???
for values and assets, not some random values.