tx · 65FSLcRGS9dwGoQN4CS8TDR9hDBwpsaA35AuDfZwrGqB
3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv: -0.01400000 Waves
2019.11.08 12:48 [755817] smart account 3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv > SELF 0.00000000 Waves
{
"type": 13,
"id": "65FSLcRGS9dwGoQN4CS8TDR9hDBwpsaA35AuDfZwrGqB",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1573206540108,
"version": 1,
"sender": "3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv",
"senderPublicKey": "8M3Q3Umd3j8Awzm99M79fM53H8ciKVWraTxGrf9qktxT",
"proofs": [
"3QZGTesM8RCXpy8rAe9UfGrtTAoa9oT3RHNhxKQt7HBKJg6yMfZNszBAXKJuR4xk8TSPg88AG3vHNVBCE91heiED"
],
"script": "base64:AAIDAAAAAAAAAAgIARIECgIICAAAAAIBAAAADHRvQnl0ZVZlY3RvcgAAAAEAAAACYnYEAAAAByRtYXRjaDAFAAAAAmJ2AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAANidjAFAAAAByRtYXRjaDAFAAAAA2J2MAkAAAIAAAABAgAAABNCeXRlVmVjdG9yIGV4cGVjdGVkAQAAAAhhc1N0cmluZwAAAAEAAAACYnYEAAAAByRtYXRjaDAFAAAAAmJ2AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAA2J2MAUAAAAHJG1hdGNoMAUAAAADYnYwCQAAAgAAAAECAAAAE0J5dGVWZWN0b3IgZXhwZWN0ZWQAAAABAAAAAWkBAAAAB3JlZ1VzZXIAAAACAAAACnVzZXJQdWJLZXkAAAAHbWVzc2FnZQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAt1c2VyUHViS2V5XwUAAAAKdXNlclB1YktleQUAAAAKdXNlclB1YktleQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAHbWVzc2FnZQUAAAAHbWVzc2FnZQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAIdmVyaWZpZXIAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24EAAAAA2ludgUAAAAHJG1hdGNoMAMJAAAAAAAAAggFAAAAA2ludgAAAAhmdW5jdGlvbgIAAAAHcmVnVXNlcgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAJAAJZAAAAAQkBAAAACGFzU3RyaW5nAAAAAQkAAZEAAAACCAUAAAADaW52AAAABGFyZ3MAAAAAAAAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleSzDGVw=",
"chainId": 84,
"height": 755817,
"spentComplexity": 0
}
View: original | compacted
Prev: HvLzWnEnbnRDiLrf1iULerbBK5oahJMGfe6fqZgUJf64
Next: 8eaLZzgLHpmbskNovUWJEuvStBDGaU4dBUVJTaSetnxp
Diff:
Old | New | | Differences |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|
20 | 20 | | @Callable(i) |
---|
21 | | - | func regUser (userPubKey,message) = WriteSet([DataEntry(("userPubKey_" + toBase58String(userPubKey)), userPubKey), DataEntry("message", message)]) |
---|
| 21 | + | func regUser (userPubKey,message) = WriteSet([DataEntry(("userPubKey_" + userPubKey), userPubKey), DataEntry("message", message)]) |
---|
22 | 22 | | |
---|
23 | 23 | | |
---|
24 | 24 | | @Verifier(tx) |
---|
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 | | func asString (bv) = match bv { |
---|
13 | 13 | | case bv0: String => |
---|
14 | 14 | | bv0 |
---|
15 | 15 | | case _ => |
---|
16 | 16 | | throw("ByteVector expected") |
---|
17 | 17 | | } |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|
20 | 20 | | @Callable(i) |
---|
21 | | - | func regUser (userPubKey,message) = WriteSet([DataEntry(("userPubKey_" + toBase58String(userPubKey)), userPubKey), DataEntry("message", message)]) |
---|
| 21 | + | func regUser (userPubKey,message) = WriteSet([DataEntry(("userPubKey_" + userPubKey), userPubKey), DataEntry("message", message)]) |
---|
22 | 22 | | |
---|
23 | 23 | | |
---|
24 | 24 | | @Verifier(tx) |
---|
25 | 25 | | func verifier () = match tx { |
---|
26 | 26 | | case inv: InvokeScriptTransaction => |
---|
27 | 27 | | if ((inv.function == "regUser")) |
---|
28 | 28 | | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[0]))) |
---|
29 | 29 | | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
30 | 30 | | case _ => |
---|
31 | 31 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
32 | 32 | | } |
---|
33 | 33 | | |
---|