tx · 7rERHm8z4Yd4S6vioXtkNjRSB4LCpH59NPQZgPUs3iCg

3MtKAg1WTDaD4u1Yg2hPSvjHKxZj4rZe5g6:  -0.05000000 Waves

2019.10.12 12:05 [716471] smart account 3MtKAg1WTDaD4u1Yg2hPSvjHKxZj4rZe5g6 > SELF 0.00000000 Waves

{ "type": 13, "id": "7rERHm8z4Yd4S6vioXtkNjRSB4LCpH59NPQZgPUs3iCg", "fee": 5000000, "feeAssetId": null, "timestamp": 1570871155962, "version": 1, "sender": "3MtKAg1WTDaD4u1Yg2hPSvjHKxZj4rZe5g6", "senderPublicKey": "bMgKmZyoSBqNJfTSZ4tnwKSG2g7ZcTWnRrd7qJWMi9K", "proofs": [ "5wiUS554BEHnTF2HoQrNFQTT4KgkNH15hKsrhnJSqV6JGrbWZtCb6b9ANgZbDzQK67qpCBbRGjwsDrCQnC1nhwox" ], "script": "base64:AAIDAAAAAAAAAAIIAQAAAAEAAAAADGhlcm1hblB1YktleQEAAAAgds7Rh+hp7E9JICpouNtAK8GYTeaVhYcsJuzrVnZp/SoAAAAAAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAJZmlyc3RTaWduAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADGhlcm1hblB1YktleQAAAAAAAAAAAQAAAAAAAAAAAAQAAAAHc2VjU2lnbgMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAAxoZXJtYW5QdWJLZXkAAAAAAAAAAAEAAAAAAAAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAJAABnAAAAAgkAAGQAAAACBQAAAAlmaXJzdFNpZ24FAAAAB3NlY1NpZ24AAAAAAAAAAAEG620lBA==", "chainId": 84, "height": 716471, "spentComplexity": 0 } View: original | compacted Prev: 8UqwKvTeTFL8xUxPhM6rzAMtZn5euLzERbBRo1AasfJG Next: 22m9WLJzxpaq9RGE4tk6es4h4KyeRkhWKQV6Wi5qfoYa Diff:
OldNewDifferences
55
66
77 @Verifier(tx)
8-func verify () = match tx {
9- case d: DataTransaction =>
10- if (sigVerify(tx.bodyBytes, tx.proofs[0], hermanPubKey))
11- then true
12- else sigVerify(tx.bodyBytes, tx.proofs[1], hermanPubKey)
13- case _ =>
14- true
15-}
8+func verify () = {
9+ let firstSign = if (sigVerify(tx.bodyBytes, tx.proofs[0], hermanPubKey))
10+ then 1
11+ else 0
12+ let secSign = if (sigVerify(tx.bodyBytes, tx.proofs[1], hermanPubKey))
13+ then 1
14+ else 0
15+ match tx {
16+ case d: DataTransaction =>
17+ ((firstSign + secSign) >= 1)
18+ case _ =>
19+ true
20+ }
21+ }
1622
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let hermanPubKey = base58'8zn296Zh3FWGjLGbPTJafpKXcRfz6kQKMJaU1zJqLUj3'
55
66
77 @Verifier(tx)
8-func verify () = match tx {
9- case d: DataTransaction =>
10- if (sigVerify(tx.bodyBytes, tx.proofs[0], hermanPubKey))
11- then true
12- else sigVerify(tx.bodyBytes, tx.proofs[1], hermanPubKey)
13- case _ =>
14- true
15-}
8+func verify () = {
9+ let firstSign = if (sigVerify(tx.bodyBytes, tx.proofs[0], hermanPubKey))
10+ then 1
11+ else 0
12+ let secSign = if (sigVerify(tx.bodyBytes, tx.proofs[1], hermanPubKey))
13+ then 1
14+ else 0
15+ match tx {
16+ case d: DataTransaction =>
17+ ((firstSign + secSign) >= 1)
18+ case _ =>
19+ true
20+ }
21+ }
1622

github/deemru/w8io/026f985 
18.21 ms