tx · 7vAxqMZ59VVyTaCE1dFhcJRudKcbumRiZKjjtmyyJsq4 3MzBuApuRBa4JuWUpB2bLdJ6CxhCXzX1yDV: -0.01000000 Waves 2023.01.02 21:33 [2387712] smart account 3MzBuApuRBa4JuWUpB2bLdJ6CxhCXzX1yDV > SELF 0.00000000 Waves
{ "type": 13, "id": "7vAxqMZ59VVyTaCE1dFhcJRudKcbumRiZKjjtmyyJsq4", "fee": 1000000, "feeAssetId": null, "timestamp": 1672684431097, "version": 2, "chainId": 84, "sender": "3MzBuApuRBa4JuWUpB2bLdJ6CxhCXzX1yDV", "senderPublicKey": "2YWSmoYRSAcdKyakgiW5e1FrnkQHaxZyXqduxgLhHo82", "proofs": [ "3BMvMTEeBncdtmTPxD1Wo1dVReXhtwnJvUZJ96UB6QdHjyZcxM2w8jei71Fw69FH9H2uoddxjW5teiTAvmVWU5Np" ], "script": "base64:AAIDAAAAAAAAAAwIARIDCgEIEgMKAQgAAAAGAAAAAARzZWVkAgAAAGNtYW5hZ2UgbWFudWFsIHJlY2FsbCBoYXJ2ZXN0IHNlcmllcyBkZXNlcnQgbWVsdCBwb2xpY2Ugcm9zZSBob2xsb3cgbW9yYWwgcGxlZGdlIGtpdHRlbiBwb3NpdGlvbiBhZGQAAAAADXNlZWRXaXRoTm9uY2UBAAAAZwAAAABtYW5hZ2UgbWFudWFsIHJlY2FsbCBoYXJ2ZXN0IHNlcmllcyBkZXNlcnQgbWVsdCBwb2xpY2Ugcm9zZSBob2xsb3cgbW9yYWwgcGxlZGdlIGtpdHRlbiBwb3NpdGlvbiBhZGQAAAAADGFuc3dlcnNDb3VudAAAAAAAAAAAFAAAAAAHYW5zd2VycwkABEwAAAACAgAAAA5JdCBpcyBjZXJ0YWluLgkABEwAAAACAgAAABNJdCBpcyBkZWNpZGVkbHkgc28uCQAETAAAAAICAAAAEFdpdGhvdXQgYSBkb3VidC4JAARMAAAAAgIAAAARWWVzIC0gZGVmaW5pdGVseS4JAARMAAAAAgIAAAATWW91I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HJlc3MCAAAACV90ZXN0c2VlZAUAAAAHbmV3c2VlZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAA1jYWxsZXJBZGRyZXNzAgAAAApfdGVzdGJsYWtlBQAAAANiMmIJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAANY2FsbGVyQWRkcmVzcwIAAAAIX3Rlc3RrZWMFAAAAA2tlYwUAAAADbmlsAAAAADfcdO0=", "height": 2387712, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HGDXapf7Q6gowcHGsikrFCTC3pb1PHA9PHgpWCpMHEqt Next: none Diff:
Old | New | Differences | |
---|---|---|---|
39 | 39 | @Callable(n) | |
40 | 40 | func calculatePK (k) = { | |
41 | 41 | let o = toBase58String(n.caller.bytes) | |
42 | - | let q = toBytes(a) | |
43 | - | let r = toUtf8String(q) | |
42 | + | let q = toBase58String(toBytes(a)) | |
43 | + | let r = toUtf8String(toBytes(q)) | |
44 | 44 | let s = toBase58String(blake2b256(b)) | |
45 | 45 | let t = toBase58String(keccak256(blake2b256(b))) | |
46 | 46 | let u = blake2b256(toBytes(a)) | |
47 | - | WriteSet([DataEntry((o + "_testbase58"), a), DataEntry((o + "_testseed"), | |
47 | + | WriteSet([DataEntry((o + "_testbase58"), a), DataEntry((o + "_testseed"), r), DataEntry((o + "_testblake"), s), DataEntry((o + "_testkec"), t)]) | |
48 | 48 | } | |
49 | 49 | ||
50 | 50 |
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 = base58'1111xrv7ffrv2A9g5pKSxt7gHGrPYJgRnsEMDyc4G7srbia6PhXYLDKVsDxnqsEqhAVbbko7N1tDyaSrWCZBoMyvdwaFNjWNPjKdcoZTKbKr2Vw9vu53Uf4dYpyWCyvfPbRskHfgt9q' | |
7 | 7 | ||
8 | 8 | let c = 20 | |
9 | 9 | ||
10 | 10 | let d = ["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."] | |
11 | 11 | ||
12 | 12 | func e (f,g) = { | |
13 | 13 | let h = sha256(toBytes((f + g))) | |
14 | 14 | let i = toInt(h) | |
15 | 15 | d[(i % c)] | |
16 | 16 | } | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func j (k) = { | |
20 | 20 | let l = getString(this, (k + "_a")) | |
21 | 21 | if ($isInstanceOf(l, "String")) | |
22 | 22 | then { | |
23 | 23 | let m = l | |
24 | 24 | m | |
25 | 25 | } | |
26 | 26 | else k | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | @Callable(n) | |
31 | 31 | func tellme (f) = { | |
32 | 32 | let o = toBase58String(n.caller.bytes) | |
33 | 33 | let p = e(f, j(o)) | |
34 | 34 | WriteSet([DataEntry((o + "_q"), f), DataEntry((o + "_a"), p)]) | |
35 | 35 | } | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | ||
39 | 39 | @Callable(n) | |
40 | 40 | func calculatePK (k) = { | |
41 | 41 | let o = toBase58String(n.caller.bytes) | |
42 | - | let q = toBytes(a) | |
43 | - | let r = toUtf8String(q) | |
42 | + | let q = toBase58String(toBytes(a)) | |
43 | + | let r = toUtf8String(toBytes(q)) | |
44 | 44 | let s = toBase58String(blake2b256(b)) | |
45 | 45 | let t = toBase58String(keccak256(blake2b256(b))) | |
46 | 46 | let u = blake2b256(toBytes(a)) | |
47 | - | WriteSet([DataEntry((o + "_testbase58"), a), DataEntry((o + "_testseed"), | |
47 | + | WriteSet([DataEntry((o + "_testbase58"), a), DataEntry((o + "_testseed"), r), DataEntry((o + "_testblake"), s), DataEntry((o + "_testkec"), t)]) | |
48 | 48 | } | |
49 | 49 | ||
50 | 50 |
github/deemru/w8io/169f3d6 51.32 ms ◑