1
0
Fork 0
mirror of https://github.com/bitcoin/bips.git synced 2025-03-03 18:57:18 +01:00

Update bip-0379.md

This commit is contained in:
Skylar Ray 2025-02-28 20:52:42 +02:00 committed by GitHub
parent 6312ae3e24
commit 091824b3bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,10 +83,10 @@ Miniscript is not a separate language, but rather a significant expansion of the
| | `pkh(key)` = `c:pk_h(key)` | `DUP HASH160 <HASH160(key)> EQUALVERIFY CHECKSIG`
| nSequence ≥ n (and compatible) | `older(n)` | `<n> CHECKSEQUENCEVERIFY`
| nLockTime ≥ n (and compatible) | `after(n)` | `<n> CHECKLOCKTIMEVERIFY`
| len(x) = 32 and SHA256(x) = h | `sha256(h)` | `SIZE 32 EQUALVERIFY SHA256 <h> EQUAL`
| len(x) = 32 and HASH256(x) = h | `hash256(h)` | `SIZE 32 EQUALVERIFY HASH256 <h> EQUAL`
| len(x) = 32 and RIPEMD160(x) = h | `ripemd160(h)` | `SIZE 32 EQUALVERIFY RIPEMD160 <h> EQUAL`
| len(x) = 32 and HASH160(x) = h | `hash160(h)` | `SIZE 32 EQUALVERIFY HASH160 <h> EQUAL`
| len(x) = 32 and SHA256(x) = h | `sha256(h)` | `SIZE <0x20> EQUALVERIFY SHA256 <h> EQUAL`
| len(x) = 32 and HASH256(x) = h | `hash256(h)` | `SIZE <0x20> EQUALVERIFY HASH256 <h> EQUAL`
| len(x) = 32 and RIPEMD160(x) = h | `ripemd160(h)` | `SIZE <0x20> EQUALVERIFY RIPEMD160 <h> EQUAL`
| len(x) = 32 and HASH160(x) = h | `hash160(h)` | `SIZE <0x20> EQUALVERIFY HASH160 <h> EQUAL`
| (X and Y) or Z | `andor(X,Y,Z)` | `[X] NOTIF [Z] ELSE [Y] ENDIF`
| X and Y | `and_v(X,Y)` | `[X] [Y]`
| | `and_b(X,Y)` | `[X] [Y] BOOLAND`