tx · 6GU5L9Jp9xi5tUEFX5gFFrQuM3pdobXjYWgxZr5N9WXE
3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv: -0.01400000 Waves
2019.11.08 11:43 [755751] smart account 3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv > SELF 0.00000000 Waves
{
"type": 13,
"id": "6GU5L9Jp9xi5tUEFX5gFFrQuM3pdobXjYWgxZr5N9WXE",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1573202672041,
"version": 1,
"sender": "3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv",
"senderPublicKey": "8M3Q3Umd3j8Awzm99M79fM53H8ciKVWraTxGrf9qktxT",
"proofs": [
"4rMEr5icwqgfC9QGcGeeidsTS1H4P5fmGKhvU8EzoYk2c5x6a811KGKcU1X673Qp5v1xvahb3NCm77yzgSjfHZmk"
],
"script": "base64:AAIDAAAAAAAAAAgIARIECgICCAAAAAEBAAAADHRvQnl0ZVZlY3RvcgAAAAEAAAACYnYEAAAAByRtYXRjaDAFAAAAAmJ2AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAANidjAFAAAAByRtYXRjaDAFAAAAA2J2MAkAAAIAAAABAgAAABNCeXRlVmVjdG9yIGV4cGVjdGVkAAAAAQAAAAFpAQAAAAdyZWdVc2VyAAAAAgAAAAp1c2VyUHViS2V5AAAAB21lc3NhZ2UJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAALdXNlclB1YktleV8JAAJYAAAAAQUAAAAKdXNlclB1YktleQUAAAAKdXNlclB1YktleQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAHbWVzc2FnZQUAAAAHbWVzc2FnZQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAIdmVyaWZpZXIAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24EAAAAA2ludgUAAAAHJG1hdGNoMAMJAAAAAAAAAggFAAAAA2ludgAAAAhmdW5jdGlvbgIAAAAHcmVnVXNlcgYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleSp2qc8=",
"chainId": 84,
"height": 755751,
"spentComplexity": 0
}
View: original | compacted
Prev: AVf8nzPXvyoWc9QrppaRGPCPUoeTp6KaPwDD8HqsLi6f
Next: BGMG5JK2beYMX1rnx8zdZTm9hTWe8e8CYXccCMUNnBbQ
Diff:
Old | New | | Differences |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | @Callable(i) |
---|
13 | | - | func regUser (userPubKey) = WriteSet([DataEntry("userPubKey", userPubKey)]) |
---|
| 13 | + | func regUser (userPubKey,message) = WriteSet([DataEntry(("userPubKey_" + toBase58String(userPubKey)), userPubKey), DataEntry("message", message)]) |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | @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 | | @Callable(i) |
---|
13 | | - | func regUser (userPubKey) = WriteSet([DataEntry("userPubKey", userPubKey)]) |
---|
| 13 | + | func regUser (userPubKey,message) = WriteSet([DataEntry(("userPubKey_" + toBase58String(userPubKey)), userPubKey), DataEntry("message", message)]) |
---|
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 | 20 | | then true |
---|
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 | | |
---|