tx · HEEdvsbtoSVvkWsoh4JoAe91j4GZu6ShiZ1vrdxzfwUK
3MujyMRPCW2bxoZ99D3whf9CLruFRu4tP8D: -0.04000000 Waves
2019.10.11 18:00 [715352] smart account 3MujyMRPCW2bxoZ99D3whf9CLruFRu4tP8D > SELF 0.00000000 Waves
{
"type": 13,
"id": "HEEdvsbtoSVvkWsoh4JoAe91j4GZu6ShiZ1vrdxzfwUK",
"fee": 4000000,
"feeAssetId": null,
"timestamp": 1570805814276,
"version": 1,
"sender": "3MujyMRPCW2bxoZ99D3whf9CLruFRu4tP8D",
"senderPublicKey": "BqQwSoyduVv7tZ5T9zc8KXA62NXUHKPYowmdZnj8Vo6w",
"proofs": [
"4XkLHhwajqtbME77f8ZF5kp5ctu9GU7FVkvKzZAqsHF12yMrGZtk9HsKtjqJaKd22Nx49w2B6iU5vQ7S1pQ5Jpkf"
],
"script": "base64:AAIDAAAAAAAAAAIIAQAAAAUAAAAADGhlcm1hblB1YktleQEAAAAgds7Rh+hp7E9JICpouNtAK8GYTeaVhYcsJuzrVnZp/SoAAAAAC3JhZGVrUHViS2V5AQAAACDXKea8qHwAEajmpIY72tBMvgYrlezQ4VkWo7qGJgANGAAAAAAMc3p5bW9uUHViS2V5AQAAACDRkuGTH71Ivy9lcX4IjxTuQsLms/6N48fSfwvRsVJ5QQAAAAAMc3lsd2VrUHViS2V5AQAAACAJi0axE2x5ykaizz0UCItQwOUevFIbiQsmCr34mbycawAAAAAMYmFja3VwUHViS2V5AQAAACBsQvAdMdDfrfRzEsIyHHR8Fqkn9gFowkln/hRcBFHaVQAAAAAAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAxoZXJtYW5TaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAMaGVybWFuUHViS2V5AAAAAAAAAAABAAAAAAAAAAAABAAAAAtyYWRla1NpZ25lZAMJA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SFLhCwpxNX7oVqwGnCMgYUkA3
Next: none
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let hermanPubKey = base58'BqQwSoyduVv7tZ5T9zc8KXA62NXUHKPYowmdZnj8Vo6w' |
---|
| 4 | + | let hermanPubKey = base58'8zn296Zh3FWGjLGbPTJafpKXcRfz6kQKMJaU1zJqLUj3' |
---|
5 | 5 | | |
---|
6 | 6 | | let radekPubKey = base58'FUuiLi5X3jvcc9rbuZjkdXCTg7efDF23wTt9BQp2ueoh' |
---|
7 | 7 | | |
---|
|
14 | 14 | | |
---|
15 | 15 | | @Verifier(tx) |
---|
16 | 16 | | func verify () = { |
---|
17 | | - | let signNeeded = 3 |
---|
18 | 17 | | let hermanSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], hermanPubKey)) |
---|
19 | 18 | | then 1 |
---|
20 | 19 | | else 0 |
---|
|
31 | 30 | | then 1 |
---|
32 | 31 | | else 0 |
---|
33 | 32 | | match tx { |
---|
| 33 | + | case d: SetScriptTransaction => |
---|
| 34 | + | sigVerify(tx.bodyBytes, tx.proofs[0], hermanPubKey) |
---|
34 | 35 | | case _ => |
---|
35 | | - | true |
---|
| 36 | + | (((((hermanSigned + radekSigned) + szymonSigned) + sylwekSigned) + backupSigned) >= 1) |
---|
36 | 37 | | } |
---|
37 | 38 | | } |
---|
38 | 39 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let hermanPubKey = base58'BqQwSoyduVv7tZ5T9zc8KXA62NXUHKPYowmdZnj8Vo6w' |
---|
| 4 | + | let hermanPubKey = base58'8zn296Zh3FWGjLGbPTJafpKXcRfz6kQKMJaU1zJqLUj3' |
---|
5 | 5 | | |
---|
6 | 6 | | let radekPubKey = base58'FUuiLi5X3jvcc9rbuZjkdXCTg7efDF23wTt9BQp2ueoh' |
---|
7 | 7 | | |
---|
8 | 8 | | let szymonPubKey = base58'F767TJVLz91RgPRJB7UNQ2CCfKPhKWzEB5826aXXw31i' |
---|
9 | 9 | | |
---|
10 | 10 | | let sylwekPubKey = base58'eFr4HSU76hcHcmX5fdt3j2KoTMhnBUUwZJprBYCjnoC' |
---|
11 | 11 | | |
---|
12 | 12 | | let backupPubKey = base58'8HcESAAVRxoe6RiLSKBLXDT3Xv91zNKx4APqNmcUztvp' |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Verifier(tx) |
---|
16 | 16 | | func verify () = { |
---|
17 | | - | let signNeeded = 3 |
---|
18 | 17 | | let hermanSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], hermanPubKey)) |
---|
19 | 18 | | then 1 |
---|
20 | 19 | | else 0 |
---|
21 | 20 | | let radekSigned = if (sigVerify(tx.bodyBytes, tx.proofs[1], radekPubKey)) |
---|
22 | 21 | | then 1 |
---|
23 | 22 | | else 0 |
---|
24 | 23 | | let szymonSigned = if (sigVerify(tx.bodyBytes, tx.proofs[2], szymonPubKey)) |
---|
25 | 24 | | then 1 |
---|
26 | 25 | | else 0 |
---|
27 | 26 | | let sylwekSigned = if (sigVerify(tx.bodyBytes, tx.proofs[3], sylwekPubKey)) |
---|
28 | 27 | | then 1 |
---|
29 | 28 | | else 0 |
---|
30 | 29 | | let backupSigned = if (sigVerify(tx.bodyBytes, tx.proofs[4], backupPubKey)) |
---|
31 | 30 | | then 1 |
---|
32 | 31 | | else 0 |
---|
33 | 32 | | match tx { |
---|
| 33 | + | case d: SetScriptTransaction => |
---|
| 34 | + | sigVerify(tx.bodyBytes, tx.proofs[0], hermanPubKey) |
---|
34 | 35 | | case _ => |
---|
35 | | - | true |
---|
| 36 | + | (((((hermanSigned + radekSigned) + szymonSigned) + sylwekSigned) + backupSigned) >= 1) |
---|
36 | 37 | | } |
---|
37 | 38 | | } |
---|
38 | 39 | | |
---|