tx · 9UBdtZoNL8ZjpoSNt18rJXbV3tSporVAnBDseAthKG3E
3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv: -0.01400000 Waves
2019.11.08 11:58 [755767] smart account 3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv > SELF 0.00000000 Waves
{
"type": 13,
"id": "9UBdtZoNL8ZjpoSNt18rJXbV3tSporVAnBDseAthKG3E",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1573203521945,
"version": 1,
"sender": "3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv",
"senderPublicKey": "8M3Q3Umd3j8Awzm99M79fM53H8ciKVWraTxGrf9qktxT",
"proofs": [
"31Z4BrrLeBNVtsqPkX2QY1gkD3WVw1kmoKZY7XTAzqjsh9tTSuZyM6JGKC1DsQXUKgTVSUvsfKagD9jA6smDvLi3"
],
"script": "base64:AAIDAAAAAAAAAAgIARIECgICCAAAAAEBAAAADHRvQnl0ZVZlY3RvcgAAAAEAAAACYnYEAAAAByRtYXRjaDAFAAAAAmJ2AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAANidjAFAAAAByRtYXRjaDAFAAAAA2J2MAkAAAIAAAABAgAAABNCeXRlVmVjdG9yIGV4cGVjdGVkAAAAAQAAAAFpAQAAAAdyZWdVc2VyAAAAAgAAAAp1c2VyUHViS2V5AAAAB21lc3NhZ2UJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAALdXNlclB1YktleV8JAAJYAAAAAQUAAAAKdXNlclB1YktleQUAAAAKdXNlclB1YktleQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAHbWVzc2FnZQUAAAAHbWVzc2FnZQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAIdmVyaWZpZXIAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24EAAAAA2ludgUAAAAHJG1hdGNoMAMJAAAAAAAAAggFAAAAA2ludgAAAAhmdW5jdGlvbgIAAAAHcmVnVXNlcgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAJAQAAAAx0b0J5dGVWZWN0b3IAAAABCQABkQAAAAIIBQAAAANpbnYAAAAEYXJncwAAAAAAAAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5IYqwnA==",
"chainId": 84,
"height": 755767,
"spentComplexity": 0
}
View: original | compacted
Prev: 95VRYBqMYmSFocwjgCY3mkjJkHdPqGDzKhHvs6XAWqA
Next: EiAe3AbGBS1p7VaNXnBjaG3oy92MvxnNBcM7jL91Ev5K
Diff:
Old | New | | Differences |
---|
23 | 23 | | then { |
---|
24 | 24 | | let j = c |
---|
25 | 25 | | if ((j.function == "regUser")) |
---|
26 | | - | then if (sigVerify(h.bodyBytes, h.proofs[0], a(j.args[0]))) |
---|
27 | | - | then true |
---|
28 | | - | else throw("sigverify rejection") |
---|
| 26 | + | then sigVerify(h.bodyBytes, h.proofs[0], a(j.args[0])) |
---|
29 | 27 | | else sigVerify(h.bodyBytes, h.proofs[0], h.senderPublicKey) |
---|
30 | 28 | | } |
---|
31 | 29 | | else sigVerify(h.bodyBytes, h.proofs[0], h.senderPublicKey) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b) = { |
---|
5 | 5 | | let c = b |
---|
6 | 6 | | if ($isInstanceOf(c, "ByteVector")) |
---|
7 | 7 | | then { |
---|
8 | 8 | | let d = c |
---|
9 | 9 | | d |
---|
10 | 10 | | } |
---|
11 | 11 | | else throw("ByteVector expected") |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(e) |
---|
16 | 16 | | func regUser (f,g) = WriteSet([DataEntry(("userPubKey_" + toBase58String(f)), f), DataEntry("message", g)]) |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | @Verifier(h) |
---|
20 | 20 | | func i () = { |
---|
21 | 21 | | let c = h |
---|
22 | 22 | | if ($isInstanceOf(c, "InvokeScriptTransaction")) |
---|
23 | 23 | | then { |
---|
24 | 24 | | let j = c |
---|
25 | 25 | | if ((j.function == "regUser")) |
---|
26 | | - | then if (sigVerify(h.bodyBytes, h.proofs[0], a(j.args[0]))) |
---|
27 | | - | then true |
---|
28 | | - | else throw("sigverify rejection") |
---|
| 26 | + | then sigVerify(h.bodyBytes, h.proofs[0], a(j.args[0])) |
---|
29 | 27 | | else sigVerify(h.bodyBytes, h.proofs[0], h.senderPublicKey) |
---|
30 | 28 | | } |
---|
31 | 29 | | else sigVerify(h.bodyBytes, h.proofs[0], h.senderPublicKey) |
---|
32 | 30 | | } |
---|
33 | 31 | | |
---|