Related eBooks

The "A 3-of-3 that turns into a 2-of-3 after 90 days" policy:

thresh(3,pk(key_1),pk(key_2),pk(key_3),older(12960))

compiled to this Miniscript a few months ago:

thresh(3,pk(key_1),s:pk(key_2),s:pk(key_3),sdv:older(12960))

which can be decoded to this script:

<key_1> OP_CHECKSIG OP_SWAP <key_2> OP_CHECKSIG OP_ADD OP_SWAP <key_3>
OP_CHECKSIG OP_ADD OP_SWAP OP_DUP OP_IF
  <a032> OP_CHECKSEQUENCEVERIFY OP_VERIFY
OP_ENDIF
OP_ADD 3 OP_EQUAL

Today it compiles to this Miniscript instead (note the sln wrapper instead of the sdv wrapper:

thresh(3,pk(key_1),s:pk(key_2),s:pk(key_3),sln:older(12960))

which can be decoded to this script:

<key_1> OP_CHECKSIG OP_SWAP <key_2> OP_CHECKSIG OP_ADD OP_SWAP <key_3>
OP_CHECKSIG OP_ADD OP_SWAP OP_IF
  0
OP_ELSE
  <a032> OP_CHECKSEQUENCEVERIFY OP_0NOTEQUAL
OP_ENDIF
OP_ADD 3 OP_EQUAL

Why has it changed?

source

By pplny

답글 남기기

이메일 주소는 공개되지 않습니다.

Translate »