1 | | - | {-# STDLIB_VERSION 3 #-} |
---|
2 | | - | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | | - | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let ownerPubKey = base58'5rRMYG6R2BNvQFL9Ztxr4mLQL3XTvTYEpeLbta3nbmHs' |
---|
5 | | - | |
---|
6 | | - | let account1PubKey = base58'4zwP5vTDkMxUjVVgGcPk6u4K9fHroRKF6VKACAWsJQdD' |
---|
7 | | - | |
---|
8 | | - | let account3PubKey = base58'3h6sXhTtfLedgnipsHp1VSJ8FapFXuvzYz83LcNQSdZf' |
---|
9 | | - | |
---|
10 | | - | |
---|
11 | | - | @Verifier(tx) |
---|
12 | | - | func verify () = { |
---|
13 | | - | let owner1 = sigVerify(tx.bodyBytes, tx.proofs[0], ownerPubKey) |
---|
14 | | - | let owner2 = sigVerify(tx.bodyBytes, tx.proofs[1], ownerPubKey) |
---|
15 | | - | let owner3 = sigVerify(tx.bodyBytes, tx.proofs[2], ownerPubKey) |
---|
16 | | - | let account11 = sigVerify(tx.bodyBytes, tx.proofs[0], account1PubKey) |
---|
17 | | - | let account12 = sigVerify(tx.bodyBytes, tx.proofs[1], account1PubKey) |
---|
18 | | - | let account13 = sigVerify(tx.bodyBytes, tx.proofs[2], account1PubKey) |
---|
19 | | - | let account31 = sigVerify(tx.bodyBytes, tx.proofs[0], account3PubKey) |
---|
20 | | - | let account32 = sigVerify(tx.bodyBytes, tx.proofs[1], account3PubKey) |
---|
21 | | - | let account33 = sigVerify(tx.bodyBytes, tx.proofs[2], account3PubKey) |
---|
22 | | - | let ownerAndOne = if (if (if (if (if (if (owner1) |
---|
23 | | - | then account12 |
---|
24 | | - | else false) |
---|
25 | | - | then true |
---|
26 | | - | else if (owner1) |
---|
27 | | - | then account13 |
---|
28 | | - | else false) |
---|
29 | | - | then true |
---|
30 | | - | else if (owner2) |
---|
31 | | - | then account11 |
---|
32 | | - | else false) |
---|
33 | | - | then true |
---|
34 | | - | else if (owner2) |
---|
35 | | - | then account13 |
---|
36 | | - | else false) |
---|
37 | | - | then true |
---|
38 | | - | else if (owner3) |
---|
39 | | - | then account11 |
---|
40 | | - | else false) |
---|
41 | | - | then true |
---|
42 | | - | else if (owner3) |
---|
43 | | - | then account12 |
---|
44 | | - | else false |
---|
45 | | - | let ownerAndThree = if (if (if (if (if (if (owner1) |
---|
46 | | - | then account32 |
---|
47 | | - | else false) |
---|
48 | | - | then true |
---|
49 | | - | else if (owner1) |
---|
50 | | - | then account33 |
---|
51 | | - | else false) |
---|
52 | | - | then true |
---|
53 | | - | else if (owner2) |
---|
54 | | - | then account31 |
---|
55 | | - | else false) |
---|
56 | | - | then true |
---|
57 | | - | else if (owner2) |
---|
58 | | - | then account33 |
---|
59 | | - | else false) |
---|
60 | | - | then true |
---|
61 | | - | else if (owner3) |
---|
62 | | - | then account31 |
---|
63 | | - | else false) |
---|
64 | | - | then true |
---|
65 | | - | else if (owner3) |
---|
66 | | - | then account32 |
---|
67 | | - | else false |
---|
68 | | - | let oneAndThree = if (if (if (if (if (if (account11) |
---|
69 | | - | then account32 |
---|
70 | | - | else false) |
---|
71 | | - | then true |
---|
72 | | - | else if (account11) |
---|
73 | | - | then account33 |
---|
74 | | - | else false) |
---|
75 | | - | then true |
---|
76 | | - | else if (account12) |
---|
77 | | - | then account31 |
---|
78 | | - | else false) |
---|
79 | | - | then true |
---|
80 | | - | else if (account12) |
---|
81 | | - | then account33 |
---|
82 | | - | else false) |
---|
83 | | - | then true |
---|
84 | | - | else if (account13) |
---|
85 | | - | then account31 |
---|
86 | | - | else false) |
---|
87 | | - | then true |
---|
88 | | - | else if (account13) |
---|
89 | | - | then account32 |
---|
90 | | - | else false |
---|
91 | | - | match tx { |
---|
92 | | - | case _ => |
---|
93 | | - | if (if (ownerAndOne) |
---|
94 | | - | then true |
---|
95 | | - | else ownerAndThree) |
---|
96 | | - | then true |
---|
97 | | - | else oneAndThree |
---|
98 | | - | } |
---|
99 | | - | } |
---|
100 | | - | |
---|
| 1 | + | # no script |
---|