check for and display simplicity transaction inputs#602
check for and display simplicity transaction inputs#602philippem merged 1 commit intoBlockstream:masterfrom
Conversation
philippem
commented
Oct 31, 2025
- on liquid chains, provide additional information when a transaction input is a simplicity program
- display program in base64 (not hex)
|
+1 on this change. @philippem demoed it earlier to me and it looks great. |
56ad7f3 to
3b31283
Compare
|
utACK 3b31283 Though eventually we should pull this stuff back into the API rather than doing Javascript parsing. |
|
utACK |
shesek
left a comment
There was a problem hiding this comment.
Looks great! Only some minor comments
This would be useful to have in the API, but perhaps behind a |
agree |
|
In the backend we can and maybe should do much more Simplicity parsing. |
3b31283 to
baa15b7
Compare
client/src/lib/elements.js
Outdated
| if (witnessLen !== 4 && !(witnessLen === 5 && hasAnnexBlock)) return false | ||
|
|
||
| const controlBlock = getControlBlock(vin.witness) | ||
| return controlBlock && (controlBlock.startsWith('be') || controlBlock.startsWith('bf')) |
There was a problem hiding this comment.
Can we do something to give this operation more semantic meaning? Ex:
function hasSimplicityTapleafVersion(controlBlock) {
return controlBlock.startsWith('be') || controlBlock.startsWith('bf');
}
There was a problem hiding this comment.
good suggestion, added in subsequent commit
- simplicity program displayed in base64 (not hex)
836cf6c to
066ce8d
Compare