tx · 75why7mE2A2Bs2ssYL3WVrAUQ3c9numwfzBT9BhowEyi
3N4RCuByb1n8ikP3jYtYUYVQvT1vDkR6hfL: -0.01400000 Waves
2019.07.28 23:54 [606425] smart account 3N4RCuByb1n8ikP3jYtYUYVQvT1vDkR6hfL > SELF 0.00000000 Waves
{
"type": 13,
"id": "75why7mE2A2Bs2ssYL3WVrAUQ3c9numwfzBT9BhowEyi",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1564347339060,
"version": 1,
"sender": "3N4RCuByb1n8ikP3jYtYUYVQvT1vDkR6hfL",
"senderPublicKey": "BRFZFVsnc2b87hEHPEVNzWUtayFELMnWmDiPuVUFkfZ3",
"proofs": [
"522q5RtwaLwksdJxKjZoesNewx9ZQJEYs6gUduY1KKR6kx3Kgz3XDe7aqmzrfnXizTXRRfSkSJNzEXb72aXiz9o8"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAAAAAABAAAAAFpAQAAAAR0ZXN0AAAAAAQAAAAGcmVzdWx0AwMJAAH0AAAAAwEAAAAGWauGw2OmAQAAAAMCmnkBAAAAAwJ1hgYJAAH0AAAAAwEAAAAHFFDciESTnAEAAAADApp5AQAAAAMCdYYGCQAB9AAAAAMBAAAACASaUfbfiXFYAQAAAAMCmnkBAAAAAwJ1hgkAAAIAAAABCQABpQAAAAEFAAAABnJlc3VsdAAAAAFpAQAAAAh0b0Jhc2U1OAAAAAEAAAADbXNnBAAAAAZyZXN1bHQJAAJYAAAAAQkAAZsAAAABBQAAAANtc2cJAAACAAAAAQUAAAAGcmVzdWx0AAAAAWkBAAAACmZyb21CYXNlNTgAAAABAAAAA21zZwQAAAAGcmVzdWx0CQAEsAAAAAEJAAJZAAAAAQUAAAADbXNnCQAAAgAAAAEFAAAABnJlc3VsdAAAAAFpAQAAAApzaGEyNTZIYXNoAAAAAQAAAANtc2cEAAAABnJlc3VsdAkAAlwAAAABCQAB9wAAAAEJAAGbAAAAAQUAAAADbXNnCQAAAgAAAAEFAAAABnJlc3VsdAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAGiUumNg==",
"chainId": 84,
"height": 606425,
"spentComplexity": 0
}
View: original | compacted
Prev: 2sZWq1GcyLmvje5U9MCnsxwSRQpF7i34xMAZXBoRBXRR
Next: BrnyQcgcjoyG8vMurrW6h7ZdPBBiKzvWAYTbwznuShFx
Diff:
Old | New | | Differences |
---|
30 | 30 | | } |
---|
31 | 31 | | |
---|
32 | 32 | | |
---|
| 33 | + | |
---|
| 34 | + | @Callable(i) |
---|
| 35 | + | func sha256Hash (msg) = { |
---|
| 36 | + | let result = toBase16String(sha256(toBytes(msg))) |
---|
| 37 | + | throw(result) |
---|
| 38 | + | } |
---|
| 39 | + | |
---|
| 40 | + | |
---|
33 | 41 | | @Verifier(tx) |
---|
34 | 42 | | func verify () = true |
---|
35 | 43 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func test () = { |
---|
8 | 8 | | let result = if (if (sigVerify(base58'message1', base58'sig', base58'pub')) |
---|
9 | 9 | | then true |
---|
10 | 10 | | else sigVerify(base58'message11', base58'sig', base58'pub')) |
---|
11 | 11 | | then true |
---|
12 | 12 | | else sigVerify(base58'message111', base58'sig', base58'pub') |
---|
13 | 13 | | throw(toString(result)) |
---|
14 | 14 | | } |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | 18 | | @Callable(i) |
---|
19 | 19 | | func toBase58 (msg) = { |
---|
20 | 20 | | let result = toBase58String(toBytes(msg)) |
---|
21 | 21 | | throw(result) |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|
26 | 26 | | @Callable(i) |
---|
27 | 27 | | func fromBase58 (msg) = { |
---|
28 | 28 | | let result = toUtf8String(fromBase58String(msg)) |
---|
29 | 29 | | throw(result) |
---|
30 | 30 | | } |
---|
31 | 31 | | |
---|
32 | 32 | | |
---|
| 33 | + | |
---|
| 34 | + | @Callable(i) |
---|
| 35 | + | func sha256Hash (msg) = { |
---|
| 36 | + | let result = toBase16String(sha256(toBytes(msg))) |
---|
| 37 | + | throw(result) |
---|
| 38 | + | } |
---|
| 39 | + | |
---|
| 40 | + | |
---|
33 | 41 | | @Verifier(tx) |
---|
34 | 42 | | func verify () = true |
---|
35 | 43 | | |
---|