@@ -6,6 +6,23 @@ FORCE=${FORCE:- }
66NOCACHE=${NOCACHE:- } # # default rebuild without --no-cache
77TAG=${TAG:- miniscript}
88
9+ # # MINT_000
10+
11+ # # MINT_001
12+
13+ # # MINT_002
14+ MINT_002_1=" thresh(3,pk(XPUB1),s:pk(XPUB2),s:pk(XPUB3),s:pk(XPUB4),s:pk(XPUB5),snu:older(100),snu:older(200))"
15+ MINT_002_2=" thresh(3,pk(XPUB1),s:pk(XPUB2),s:pk(XPUB3),s:pk(XPUB4),s:pk(XPUB5),snu:after(1694563200),snu:after(1694563200))"
16+ MINT_002_3=" thresh(3,pk(XPUB1),s:pk(XPUB2),s:pk(XPUB3),s:pk(XPUB4),s:pk(XPUB5),snu:after(1694563200),snu:after(1694476800))"
17+ MINT_002_4=" thresh(3,pk(XPUB1),s:pk(XPUB2),s:pk(XPUB3),s:pk(XPUB4),s:pk(XPUB5),snu:older(4194400),snu:older(4194500))"
18+
19+ # # MINT_003
20+ MINT_003=" or(99@thresh(2,thresh(2,pk(A1),pk(A2),pk(A3),after(1004)),or(10@thresh(2,pk(P1),pk(P2),pk(P3),after(1002)),and(thresh(1,pk(SA1),pk(SA2),pk(SA3)),after(1003)))),and(thresh(2,pk(M1),pk(M2),pk(M3)),after(1005)))"
21+
22+ # # MINT_004
23+ MINT_004=" or(99@thresh(3,thresh(2,pk(P1),pk(P2),pk(P3),after(1002),after(1003)),thresh(2,pk(A1),pk(A2),pk(A3),after(1004)),thresh(1,pk(SA1),pk(SA2),pk(SA3))),1@and(thresh(2,pk(M1),pk(M2),pk(M3)),after(1005)))"
24+
25+
926function help {
1027
1128 printf " Usage:\n"
@@ -26,7 +43,93 @@ function help {
2643 printf " miniscript-docker run \'and_v(or_c(pk(B),or_c(pk(C),v:older(1000))),pk(A))'\n"
2744 printf " miniscript-docker run \'and(pk(A),or(pk(B),or(9@pk(C),older(1000))))'\n"
2845 printf " \n"
46+ printf " Miniscript Templates (MinT)\n"
47+ printf " \n"
48+ printf " MinT-000\n"
49+ printf " miniscript-docker run \'and(pk(A),or(pk(B),or(9@pk(C),older(1000))))'\n"
50+ printf " \n"
51+ printf " MinT-001\n"
52+ printf " miniscript-docker run \'and(pk(A),or(pk(B),or(9@pk(C),older(1000))))'\n"
53+ printf " \n"
54+ printf " MinT-002.1\n"
55+ printf " miniscript-docker run \'$MINT_002_1 '\n"
56+ # # 0
57+ # # scriptlen=206
58+ # # maxops=28
59+ # # type=B
60+ # # safe=yes
61+ # # nonmal=yes
62+ # # dissat=yes
63+ # # input=-
64+ # # output=1
65+ # # timelock_mix=no
66+ # # miniscript=
67+ # # thresh(3,pk(XPUB1),s:pk(XPUB2),s:pk(XPUB3),s:pk(XPUB4),s:pk(XPUB5),snu:older(100),snu:older(200))
68+ printf " MinT-002.2\n"
69+ printf " miniscript-docker run \'$MINT_002_2 '\n"
70+ # # 0
71+ # # scriptlen=211
72+ # # maxops=28
73+ # # type=B
74+ # # safe=yes
75+ # # nonmal=yes
76+ # # dissat=yes
77+ # # input=-
78+ # # output=1
79+ # # timelock_mix=no
80+ # # miniscript=
81+ # # thresh(3,pk(XPUB1),s:pk(XPUB2),s:pk(XPUB3),s:pk(XPUB4),s:pk(XPUB5),snu:after(1694563200),snu:after(1694563200))
82+ printf " \n"
83+ printf " MinT-002.3\n"
84+ printf " miniscript-docker run \'$MINT_002_3 '\n"
85+ # # 0
86+ # # scriptlen=211
87+ # # maxops=28
88+ # # type=B
89+ # # safe=yes
90+ # # nonmal=yes
91+ # # dissat=yes
92+ # # input=-
93+ # # output=1
94+ # # timelock_mix=no
95+ # # miniscript=
96+ # # thresh(3,pk(XPUB1),s:pk(XPUB2),s:pk(XPUB3),s:pk(XPUB4),s:pk(XPUB5),snu:after(1694563200),snu:after(1694476800))
97+ printf " \n"
98+ printf " MinT-002.4\n"
99+ printf " miniscript-docker run \'$MINT_002_4 '\n"
100+ printf " \n"
101+ # # 0
102+ # # scriptlen=209
103+ # # maxops=28
104+ # # type=B
105+ # # safe=yes
106+ # # nonmal=yes
107+ # # dissat=yes
108+ # # input=-
109+ # # output=1
110+ # # timelock_mix=no
111+ # # miniscript=
112+ # # thresh(3,pk(XPUB1),s:pk(XPUB2),s:pk(XPUB3),s:pk(XPUB4),s:pk(XPUB5),snu:older(4194400),snu:older(4194500))
113+ printf " \n"
114+
115+ printf " MinT-003\n"
116+ printf " miniscript-docker run \'$MINT_003 '\n"
117+ # # X
118+ # # 647.0300000000
119+ # # 420
120+ # # or_i(and_v(v:thresh(2,pkh(M1),a:pkh(M2),a:pkh(M3)),after(1005)),and_v(v:thresh(2,pk(A1),s:pk(A2),s:pk(A3),sln:after(1004)),or_i(and_v(vc:or_i(pk_h(SA1),or_i(pk_h(SA2),pk_h(SA3))),after(1003)),thresh(2,pk(P1),s:pk(P2),s:pk(P3),sln:after(1002)))))
121+ # # or(99@thresh(2,thresh(2,pk(A1),pk(A2),pk(A3),after(1004)),or(10@thresh(2,pk(P1),pk(P2),pk(P3),after(1002)),and(thresh(1,pk(SA1),pk(SA2),pk(SA3)),after(1003)))),and(thresh(2,pk(M1),pk(M2),pk(M3)),after(1005)))\n"
122+ printf " \n"
123+
124+ printf " MinT-004\n"
125+ printf " miniscript-docker run \'$MINT_004 '\n"
126+ printf " \n"
29127
128+ # # X
129+ # # 728.6930000000
130+ # # 444
131+ # # or_i(and_v(v:thresh(2,pkh(M1),a:pkh(M2),a:pkh(M3)),after(1005)),and_v(v:thresh(2,pk(P1),s:pk(P2),s:pk(P3),sun:after(1002),sun:after(1003)),and_v(or_c(pk(SA1),or_c(pk(SA3),v:pkh(SA2))),thresh(2,pk(A1),s:pk(A2),s:pk(A3),sln:after(1004)))))
132+ # # or(99@thresh(3,thresh(2,pk(P1),pk(P2),pk(P3),after(1002),after(1003)),thresh(2,pk(A1),pk(A2),pk(A3),after(1004)),thresh(1,pk(SA1),pk(SA2),pk(SA3))),1@and(thresh(2,pk(M1),pk(M2),pk(M3)),after(1005)))
30133 exit ;
31134}
32135
0 commit comments