tx · J8h22vvR7pHwQwArZsYi8fgpfhx59JevCMQTUtkAGExz
3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv: -0.01400000 Waves
2019.11.08 11:17 [755719] smart account 3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv > SELF 0.00000000 Waves
{
"type": 13,
"id": "J8h22vvR7pHwQwArZsYi8fgpfhx59JevCMQTUtkAGExz",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1573201101754,
"version": 1,
"sender": "3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv",
"senderPublicKey": "8M3Q3Umd3j8Awzm99M79fM53H8ciKVWraTxGrf9qktxT",
"proofs": [
"5GpufABiCEySXku31etdUYC9TjL5LBDNpK5FFhK6vp2ZygrY9idvYixkji22zGEavjpCrbiGCt63hcf61bevosFo"
],
"script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAAAQEAAAAMdG9CeXRlVmVjdG9yAAAAAQAAAAJidgQAAAAHJG1hdGNoMAUAAAACYnYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAA2J2MAUAAAAHJG1hdGNoMAUAAAADYnYwCQAAAgAAAAECAAAAE0J5dGVWZWN0b3IgZXhwZWN0ZWQAAAABAAAAAWkBAAAAB3JlZ1VzZXIAAAABAAAACnVzZXJQdWJLZXkDCQEAAAACIT0AAAACBQAAAAp1c2VyUHViS2V5AgAAACxFOEJFakRIVEQ3M0dEZ1o4ZWJlOTNQOXI4YTUzNDZOQVhiS1FoVDh3TDhURQkAAAIAAAABAgAAABB1c2VyIG5vdCBhbGxvd2VkCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAp1c2VyUHViS2V5BQAAAAp1c2VyUHViS2V5BQAAAANuaWwAAAABAAAAAnR4AQAAAAh2ZXJpZmllcgAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgQAAAADaW52BQAAAAckbWF0Y2gwAwkAAAAAAAACCAUAAAADaW52AAAACGZ1bmN0aW9uAgAAAAdyZWdVc2VyCQAAAgAAAAECAAAABHRvdG8JAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleT0mdjc=",
"chainId": 84,
"height": 755719,
"spentComplexity": 0
}
View: original | compacted
Prev: HJjdU4DpY8EJSnXw1nxmQZvYYyHdhXzJ23ya5LFNPB3f
Next: c2qYPWAvbu8awnbWNArWowWKRaExBw4e6sVAbJtTQfa
Diff:
Old | New | | Differences |
---|
19 | 19 | | func verifier () = match tx { |
---|
20 | 20 | | case inv: InvokeScriptTransaction => |
---|
21 | 21 | | if ((inv.function == "regUser")) |
---|
22 | | - | then sigVerify(tx.bodyBytes, tx.proofs[0], toByteVector(inv.args[0])) |
---|
| 22 | + | then throw("toto") |
---|
23 | 23 | | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
24 | 24 | | case _ => |
---|
25 | 25 | | 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) = if ((userPubKey != "E8BEjDHTD73GDgZ8ebe93P9r8a5346NAXbKQhT8wL8TE")) |
---|
14 | 14 | | then throw("user not allowed") |
---|
15 | 15 | | else WriteSet([DataEntry("userPubKey", userPubKey)]) |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | 18 | | @Verifier(tx) |
---|
19 | 19 | | func verifier () = match tx { |
---|
20 | 20 | | case inv: InvokeScriptTransaction => |
---|
21 | 21 | | if ((inv.function == "regUser")) |
---|
22 | | - | then sigVerify(tx.bodyBytes, tx.proofs[0], toByteVector(inv.args[0])) |
---|
| 22 | + | then throw("toto") |
---|
23 | 23 | | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
24 | 24 | | case _ => |
---|
25 | 25 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
26 | 26 | | } |
---|
27 | 27 | | |
---|