tx · 6uuFYTz9z1h2XdehJuXiHCbPgvw54nxwm3VbA7RasQJE
3MsYB1YL7gzygFM5vZJLNoSwxiVARw3i4dS: -0.01400000 Waves
2019.11.08 11:54 [755761] smart account 3MsYB1YL7gzygFM5vZJLNoSwxiVARw3i4dS > SELF 0.00000000 Waves
{
"type": 13,
"id": "6uuFYTz9z1h2XdehJuXiHCbPgvw54nxwm3VbA7RasQJE",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1573203271689,
"version": 1,
"sender": "3MsYB1YL7gzygFM5vZJLNoSwxiVARw3i4dS",
"senderPublicKey": "6G5NGhnfJz9aCpHo6LFhebGvnbhYgG31LQbjmMnkzqSe",
"proofs": [
"4yZxmb8KeNQedBySvtMLBVcb8Q9UpVRATEcy4bh1RAC3N99gXGpy8YEfeK4kZJzdAPnn8LcFZXH59kipCUP1hLH1"
],
"script": "base64:AAIDAAAAAAAAAAcIARIDCgECAAAAAQEAAAAMdG9CeXRlVmVjdG9yAAAAAQAAAAJidgQAAAAHJG1hdGNoMAUAAAACYnYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAA2J2MAUAAAAHJG1hdGNoMAUAAAADYnYwCQAAAgAAAAECAAAAE0J5dGVWZWN0b3IgZXhwZWN0ZWQAAAABAAAAAWkBAAAAB3JlZ1VzZXIAAAABAAAACnVzZXJQdWJLZXkJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAACnVzZXJQdWJLZXkFAAAACnVzZXJQdWJLZXkFAAAAA25pbAAAAAEAAAACdHgBAAAACHZlcmlmaWVyAAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBAAAAANpbnYFAAAAByRtYXRjaDADCQAAAAAAAAIIBQAAAANpbnYAAAAIZnVuY3Rpb24CAAAAB3JlZ1VzZXIJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAAAQAAACBJbFjA0q5xX8lPTWjE8Xt6Nj3+eShbmdQETLpCwGqETAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5SeRkDA==",
"chainId": 84,
"height": 755761,
"spentComplexity": 0
}
View: original | compacted
Prev: HM6TgJnEZ7YhaPgfmvznrCWfa5rK8EdLCQjUdqqEbY85
Next: 2YgEgnjeNpoZfkgrcZLaKscwr8DXErDqLHJ75DLMjebz
Diff:
Old | New | | Differences |
---|
17 | 17 | | func verifier () = match tx { |
---|
18 | 18 | | case inv: InvokeScriptTransaction => |
---|
19 | 19 | | if ((inv.function == "regUser")) |
---|
20 | | - | then sigVerify(tx.bodyBytes, tx.proofs[0], toByteVector(inv.args[0])) |
---|
| 20 | + | then sigVerify(tx.bodyBytes, tx.proofs[0], base58'5wcatb2dTJHNrGsqRCaric3CaQMT4DD4ucfcxkHanzuh') |
---|
21 | 21 | | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
22 | 22 | | case _ => |
---|
23 | 23 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func toByteVector (bv) = match bv { |
---|
5 | 5 | | case bv0: ByteVector => |
---|
6 | 6 | | bv0 |
---|
7 | 7 | | case _ => |
---|
8 | 8 | | throw("ByteVector expected") |
---|
9 | 9 | | } |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | @Callable(i) |
---|
13 | 13 | | func regUser (userPubKey) = WriteSet([DataEntry("userPubKey", userPubKey)]) |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | @Verifier(tx) |
---|
17 | 17 | | func verifier () = match tx { |
---|
18 | 18 | | case inv: InvokeScriptTransaction => |
---|
19 | 19 | | if ((inv.function == "regUser")) |
---|
20 | | - | then sigVerify(tx.bodyBytes, tx.proofs[0], toByteVector(inv.args[0])) |
---|
| 20 | + | then sigVerify(tx.bodyBytes, tx.proofs[0], base58'5wcatb2dTJHNrGsqRCaric3CaQMT4DD4ucfcxkHanzuh') |
---|
21 | 21 | | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
22 | 22 | | case _ => |
---|
23 | 23 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
24 | 24 | | } |
---|
25 | 25 | | |
---|