tx · 6gKTNNppatUWERFdqFaNVdQ6L1cYZBzh4f2bc2eKziwB 3MzBuApuRBa4JuWUpB2bLdJ6CxhCXzX1yDV: -0.01000000 Waves 2023.01.02 19:51 [2387612] smart account 3MzBuApuRBa4JuWUpB2bLdJ6CxhCXzX1yDV > SELF 0.00000000 Waves
{ "type": 13, "id": "6gKTNNppatUWERFdqFaNVdQ6L1cYZBzh4f2bc2eKziwB", "fee": 1000000, "feeAssetId": null, "timestamp": 1672678268434, "version": 2, "chainId": 84, "sender": "3MzBuApuRBa4JuWUpB2bLdJ6CxhCXzX1yDV", "senderPublicKey": "2YWSmoYRSAcdKyakgiW5e1FrnkQHaxZyXqduxgLhHo82", "proofs": [ "4phTgsZwfA67QAfjnBF1a9vqB6svptzSvoqpVtdFkoCbc1rh5fgTjXQoSQ4z5CNva1HJRmH5QG2aQq9jGZYQy8a7" ], "script": "base64:AAIDAAAAAAAAAAwIARIDCgEIEgMKAQgAAAAFAAAAAARzZWVkAgAAAGNtYW5hZ2UgbWFudWFsIHJlY2FsbCBoYXJ2ZXN0IHNlcmllcyBkZXNlcnQgbWVsdCBwb2xpY2Ugcm9zZSBob2xsb3cgbW9yYWwgcGxlZGdlIGtpdHRlbiBwb3NpdGlvbiBhZGQAAAAADGFuc3dlcnNDb3VudAAAAAAAAAAAFAAAAAAHYW5zd2VycwkABEwAAAACAgAAAA5JdCBpcyBjZXJ0YWluLgkABEwAAAACAgAAABNJdCBpcyBkZWNpZGVkbHkgc28uCQAETAAAAAICAAAAEFdpdGhvdXQgYSBkb3VidC4JAARMAAAAAgIAAAARWWVzIC0gZGVmaW5pdGVseS4JAARMAAAAAgIAAAATWW91IG1heSByZWx5IG9uIGl0LgkABEwAAAACAgAAABFBcyBJIHNlZSBpdCwgeWVzLgkABEwAAAACAgAAAAxNb3N0IGxpa2VseS4JAARMAAAAAgIAAAANT3V0bG9vayBnb29kLgkABEwAAAACAgAAAARZZXMuCQAETAAAAAICAAAAE1NpZ25zIHBvaW50IHR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AAAAhxdWVzdGlvbgkBAAAAEWdldFByZXZpb3VzQW5zd2VyAAAAAQUAAAANY2FsbGVyQWRkcmVzcwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAA1jYWxsZXJBZGRyZXNzAgAAAAJfcQUAAAAIcXVlc3Rpb24JAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAANY2FsbGVyQWRkcmVzcwIAAAACX2EFAAAABmFuc3dlcgUAAAADbmlsAAAAAWkBAAAAC2NhbGN1bGF0ZVBLAAAAAQAAAAdhZGRyZXNzBAAAAA1jYWxsZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAB25ld3NlZWQJAASwAAAAAQkAAZsAAAABBQAAAARzZWVkBAAAAAp0ZXN0YmFzZTU4CQACWAAAAAEJAAGbAAAAAQUAAAAHbmV3c2VlZAQAAAAJdGVzdGJsYWtlCQAB9gAAAAEJAAGbAAAAAQUAAAAEc2VlZAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAA1jYWxsZXJBZGRyZXNzAgAAAAtfdGVzdGJhc2U1OAkABLAAAAABCQABmwAAAAEFAAAACnRlc3RiYXNlNTgJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAANY2FsbGVyQWRkcmVzcwIAAAAKX3Rlc3RibGFrZQUAAAAJdGVzdGJsYWtlBQAAAANuaWwAAAAA05qVyA==", "height": 2387612, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7e6wwcxJyjUVHyiRJ3PmTXkKSBU7nJUfZczwk1VyXMFq Next: 7ReDwwZVRBGMPRxJuE1zu1GGVB5UkQtH44CfAGwwZZhx Diff:
Old | New | Differences | |
---|---|---|---|
38 | 38 | func calculatePK (j) = { | |
39 | 39 | let n = toBase58String(m.caller.bytes) | |
40 | 40 | let p = toUtf8String(toBytes(a)) | |
41 | - | let q = toBase58String(toBytes( | |
41 | + | let q = toBase58String(toBytes(p)) | |
42 | 42 | let r = blake2b256(toBytes(a)) | |
43 | 43 | WriteSet([DataEntry((n + "_testbase58"), toUtf8String(toBytes(q))), DataEntry((n + "_testblake"), r)]) | |
44 | 44 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "manage manual recall harvest series desert melt police rose hollow moral pledge kitten position add" | |
5 | 5 | ||
6 | 6 | let b = 20 | |
7 | 7 | ||
8 | 8 | let c = ["It is certain.", "It is decidedly so.", "Without a doubt.", "Yes - definitely.", "You may rely on it.", "As I see it, yes.", "Most likely.", "Outlook good.", "Yes.", "Signs point to yes.", "Reply hazy, try again.", "Ask again later.", "Better not tell you now.", "Cannot predict now.", "Concentrate and ask again.", "Don't count on it.", "My reply is no.", "My sources say no.", "Outlook not so good.", "Very doubtful."] | |
9 | 9 | ||
10 | 10 | func d (e,f) = { | |
11 | 11 | let g = sha256(toBytes((e + f))) | |
12 | 12 | let h = toInt(g) | |
13 | 13 | c[(h % b)] | |
14 | 14 | } | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func i (j) = { | |
18 | 18 | let k = getString(this, (j + "_a")) | |
19 | 19 | if ($isInstanceOf(k, "String")) | |
20 | 20 | then { | |
21 | 21 | let l = k | |
22 | 22 | l | |
23 | 23 | } | |
24 | 24 | else j | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | @Callable(m) | |
29 | 29 | func tellme (e) = { | |
30 | 30 | let n = toBase58String(m.caller.bytes) | |
31 | 31 | let o = d(e, i(n)) | |
32 | 32 | WriteSet([DataEntry((n + "_q"), e), DataEntry((n + "_a"), o)]) | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | ||
37 | 37 | @Callable(m) | |
38 | 38 | func calculatePK (j) = { | |
39 | 39 | let n = toBase58String(m.caller.bytes) | |
40 | 40 | let p = toUtf8String(toBytes(a)) | |
41 | - | let q = toBase58String(toBytes( | |
41 | + | let q = toBase58String(toBytes(p)) | |
42 | 42 | let r = blake2b256(toBytes(a)) | |
43 | 43 | WriteSet([DataEntry((n + "_testbase58"), toUtf8String(toBytes(q))), DataEntry((n + "_testblake"), r)]) | |
44 | 44 | } | |
45 | 45 | ||
46 | 46 |
github/deemru/w8io/169f3d6 25.12 ms ◑