-
Notifications
You must be signed in to change notification settings - Fork 46
Standard Simplicity Script Pubkey
roconnor-blockstream edited this page Feb 16, 2023
·
13 revisions
The disassembled DAG of the standard Simplicity program for a single public key looks as follows.
let e0 = Word <32-byte x-only-public-key> -- : π β’ π^256 let e1 = iden -- : π^256 Γ π β’ π^256 Γ π let e2 = Jet sigAllHash -- : π β’ π^256 let e3 = disconnect e1 e2 -- : π β’ π^512 let e4 = pair e0 e3 -- : π β’ π^256 Γ π^512 let e5 = witness <64-byte BIP-0340-signature> -- : π β’ π^512 let e6 = pair e4 e5 -- : π β’ (π^256 Γ π^512) Γ π^512 let e7 = Jet checkSigVerify -- : (π^256 Γ π^512) Γ π^512 β’ π in comp e6 e7 -- : π β’ π
For each subexpression we have given a comment showing the inferred type of every subexpression.