tx · 3RtMr75qpig2aEZw6jonXsqrqXqnAeWREDztmuMaooQG

3N1fXnYScaj9gbRhqcPBSVV9EkAzf59kAUj:  -0.01400000 Waves

2020.04.18 21:59 [960330] smart account 3N1fXnYScaj9gbRhqcPBSVV9EkAzf59kAUj > SELF 0.00000000 Waves

{ "type": 13, "id": "3RtMr75qpig2aEZw6jonXsqrqXqnAeWREDztmuMaooQG", "fee": 1400000, "feeAssetId": null, "timestamp": 1587236381924, "version": 1, "sender": "3N1fXnYScaj9gbRhqcPBSVV9EkAzf59kAUj", "senderPublicKey": "2DnacLjqvYrAdwcyjdiFgnHpZcrDNEdu9TnhMn1FBBwC", "proofs": [ "5XCVXgUefyAJZbkASbzYb3E2Dfo3HLRj8Y515SMXFcSyso6JdP4Jg4NMEMuHLA15BnJt4W5CjK73FjfYMVS3PXK5" ], "script": "base64:AAIDAAAAAAAAAAIIAQAAAAMAAAAAC2FsaWNlcHVia2V5AQAAACASIjGJswIgRs12iyANG0fQi4nOo+cSCh+IR38oVQXZXwAAAAAJYm9icHVia2V5AQAAACCsBEODv1ZKEGAu+K3w10h7zutgxTatPvTCsPPw9bjZTgAAAAAMY29vcGVycHVia2V5AQAAACCsBEODv1ZKEGAu+K3w10h7zutgxTatPvTCsPPw9bjZTgAAAAAAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAZhbGljZTEJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAthbGljZXB1YmtleQQAAAAGYWxpY2UyCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAALYWxpY2VwdWJrZXkEAAAABmFsaWNlMwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFA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oMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAWQAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAFkAAAABnByb29mcwAAAAAAAAAAAAgFAAAAAWQAAAAPc2VuZGVyUHVibGljS2V5CQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAAAthbGljZVNpZ25lZAUAAAAJYm9iU2lnbmVkBQAAAAxjb29wZXJTaWduZWQAAAAAAAAAAAKlCPNN", "chainId": 84, "height": 960330, "spentComplexity": 0 } View: original | compacted Prev: 4eh8dKJoz86ivxb5kemejPGLcrZc2Jv9eshdfNZDaiQD Next: FYVDNHVWRQCsv1vpxKwQeutbcUX1tAfXspYMZv7exeky Diff:
OldNewDifferences
1010
1111 @Verifier(tx)
1212 func verify () = {
13- let alice1 = sigVerify(tx.bodyBytes, tx.proofs[2], alicepubkey)
14- let alice2 = sigVerify(tx.bodyBytes, tx.proofs[30], alicepubkey)
15- let alice3 = sigVerify(tx.bodyBytes, tx.proofs[42], alicepubkey)
16- let bob1 = sigVerify(tx.bodyBytes, tx.proofs[4], bobpubkey)
17- let bob2 = sigVerify(tx.bodyBytes, tx.proofs[5], bobpubkey)
18- let bob3 = sigVerify(tx.bodyBytes, tx.proofs[6], bobpubkey)
13+ let alice1 = sigVerify(tx.bodyBytes, tx.proofs[0], alicepubkey)
14+ let alice2 = sigVerify(tx.bodyBytes, tx.proofs[1], alicepubkey)
15+ let alice3 = sigVerify(tx.bodyBytes, tx.proofs[2], alicepubkey)
16+ let bob1 = sigVerify(tx.bodyBytes, tx.proofs[0], bobpubkey)
17+ let bob2 = sigVerify(tx.bodyBytes, tx.proofs[1], bobpubkey)
18+ let bob3 = sigVerify(tx.bodyBytes, tx.proofs[2], bobpubkey)
1919 let cooper1 = sigVerify(tx.bodyBytes, tx.proofs[0], cooperpubkey)
20- let cooper2 = sigVerify(tx.bodyBytes, tx.proofs[0], cooperpubkey)
21- let cooper3 = sigVerify(tx.bodyBytes, tx.proofs[0], cooperpubkey)
22- let aliceandbob = if (if (if (if (if (if (alice1)
23- then bob2
24- else false)
20+ let cooper2 = sigVerify(tx.bodyBytes, tx.proofs[1], cooperpubkey)
21+ let cooper3 = sigVerify(tx.bodyBytes, tx.proofs[2], cooperpubkey)
22+ let aliceSigned = if (if (if (alice1)
2523 then true
26- else if (alice1)
27- then bob3
28- else false)
24+ else alice2)
2925 then true
30- else if (alice2)
31- then bob1
32- else false)
26+ else alice3)
27+ then 1
28+ else 0
29+ let bobSigned = if (if (if (bob1)
3330 then true
34- else if (alice2)
35- then bob3
36- else false)
31+ else bob2)
3732 then true
38- else if (alice3)
39- then bob1
40- else false)
33+ else bob3)
34+ then 1
35+ else 0
36+ let cooperSigned = if (if (if (cooper1)
4137 then true
42- else if (alice3)
43- then bob2
44- else false
45- let aliceandcooper = if (if (if (if (if (if (alice1)
46- then cooper2
47- else false)
38+ else cooper2)
4839 then true
49- else if (alice1)
50- then cooper3
51- else false)
52- then true
53- else if (alice1)
54- then cooper1
55- else false)
56- then true
57- else if (alice2)
58- then cooper3
59- else false)
60- then true
61- else if (alice3)
62- then cooper1
63- else false)
64- then true
65- else if (alice3)
66- then cooper2
67- else false
68- let bobandcooper = if (if (if (if (if (if (cooper1)
69- then bob2
70- else false)
71- then true
72- else if (cooper1)
73- then bob3
74- else false)
75- then true
76- else if (cooper2)
77- then bob1
78- else false)
79- then true
80- else if (cooper2)
81- then bob3
82- else false)
83- then true
84- else if (cooper3)
85- then bob1
86- else false)
87- then true
88- else if (cooper3)
89- then bob2
90- else false
40+ else cooper3)
41+ then 1
42+ else 0
9143 match tx {
9244 case d: TransferTransaction|SetScriptTransaction =>
9345 sigVerify(d.bodyBytes, d.proofs[0], d.senderPublicKey)
9446 case _ =>
95- if (if (aliceandbob)
96- then true
97- else aliceandcooper)
98- then true
99- else bobandcooper
47+ (((aliceSigned + bobSigned) + cooperSigned) >= 2)
10048 }
10149 }
10250
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let alicepubkey = base58'2DnacLjqvYrAdwcyjdiFgnHpZcrDNEdu9TnhMn1FBBwC'
55
66 let bobpubkey = base58'CaUtuNYGEX5QqzdFkXt8CUKoGdDBUxyY2LMQb74i7CSy'
77
88 let cooperpubkey = base58'CaUtuNYGEX5QqzdFkXt8CUKoGdDBUxyY2LMQb74i7CSy'
99
1010
1111 @Verifier(tx)
1212 func verify () = {
13- let alice1 = sigVerify(tx.bodyBytes, tx.proofs[2], alicepubkey)
14- let alice2 = sigVerify(tx.bodyBytes, tx.proofs[30], alicepubkey)
15- let alice3 = sigVerify(tx.bodyBytes, tx.proofs[42], alicepubkey)
16- let bob1 = sigVerify(tx.bodyBytes, tx.proofs[4], bobpubkey)
17- let bob2 = sigVerify(tx.bodyBytes, tx.proofs[5], bobpubkey)
18- let bob3 = sigVerify(tx.bodyBytes, tx.proofs[6], bobpubkey)
13+ let alice1 = sigVerify(tx.bodyBytes, tx.proofs[0], alicepubkey)
14+ let alice2 = sigVerify(tx.bodyBytes, tx.proofs[1], alicepubkey)
15+ let alice3 = sigVerify(tx.bodyBytes, tx.proofs[2], alicepubkey)
16+ let bob1 = sigVerify(tx.bodyBytes, tx.proofs[0], bobpubkey)
17+ let bob2 = sigVerify(tx.bodyBytes, tx.proofs[1], bobpubkey)
18+ let bob3 = sigVerify(tx.bodyBytes, tx.proofs[2], bobpubkey)
1919 let cooper1 = sigVerify(tx.bodyBytes, tx.proofs[0], cooperpubkey)
20- let cooper2 = sigVerify(tx.bodyBytes, tx.proofs[0], cooperpubkey)
21- let cooper3 = sigVerify(tx.bodyBytes, tx.proofs[0], cooperpubkey)
22- let aliceandbob = if (if (if (if (if (if (alice1)
23- then bob2
24- else false)
20+ let cooper2 = sigVerify(tx.bodyBytes, tx.proofs[1], cooperpubkey)
21+ let cooper3 = sigVerify(tx.bodyBytes, tx.proofs[2], cooperpubkey)
22+ let aliceSigned = if (if (if (alice1)
2523 then true
26- else if (alice1)
27- then bob3
28- else false)
24+ else alice2)
2925 then true
30- else if (alice2)
31- then bob1
32- else false)
26+ else alice3)
27+ then 1
28+ else 0
29+ let bobSigned = if (if (if (bob1)
3330 then true
34- else if (alice2)
35- then bob3
36- else false)
31+ else bob2)
3732 then true
38- else if (alice3)
39- then bob1
40- else false)
33+ else bob3)
34+ then 1
35+ else 0
36+ let cooperSigned = if (if (if (cooper1)
4137 then true
42- else if (alice3)
43- then bob2
44- else false
45- let aliceandcooper = if (if (if (if (if (if (alice1)
46- then cooper2
47- else false)
38+ else cooper2)
4839 then true
49- else if (alice1)
50- then cooper3
51- else false)
52- then true
53- else if (alice1)
54- then cooper1
55- else false)
56- then true
57- else if (alice2)
58- then cooper3
59- else false)
60- then true
61- else if (alice3)
62- then cooper1
63- else false)
64- then true
65- else if (alice3)
66- then cooper2
67- else false
68- let bobandcooper = if (if (if (if (if (if (cooper1)
69- then bob2
70- else false)
71- then true
72- else if (cooper1)
73- then bob3
74- else false)
75- then true
76- else if (cooper2)
77- then bob1
78- else false)
79- then true
80- else if (cooper2)
81- then bob3
82- else false)
83- then true
84- else if (cooper3)
85- then bob1
86- else false)
87- then true
88- else if (cooper3)
89- then bob2
90- else false
40+ else cooper3)
41+ then 1
42+ else 0
9143 match tx {
9244 case d: TransferTransaction|SetScriptTransaction =>
9345 sigVerify(d.bodyBytes, d.proofs[0], d.senderPublicKey)
9446 case _ =>
95- if (if (aliceandbob)
96- then true
97- else aliceandcooper)
98- then true
99- else bobandcooper
47+ (((aliceSigned + bobSigned) + cooperSigned) >= 2)
10048 }
10149 }
10250

github/deemru/w8io/6500d08 
46.00 ms