5 | | - | |
---|
6 | | - | @Callable(inv) |
---|
7 | | - | func f () = { |
---|
8 | | - | let rand = ((((inv.transactionId + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) |
---|
9 | | - | let x1 = sha256(rand) |
---|
10 | | - | let x2 = sha256(toBytes(1)) |
---|
11 | | - | let x3 = sha256(((toBytes(1) + x2) + x1)) |
---|
12 | | - | let x4 = sha256((toBytes(1) + x3)) |
---|
13 | | - | let x5 = sha256(((((toBytes(1) + x4) + x3) + x2) + x1)) |
---|
14 | | - | let x6 = sha256((((((toBytes(1) + x5) + x4) + x3) + x2) + x1)) |
---|
15 | | - | let x7 = sha256(((((((toBytes(1) + x6) + x5) + x4) + x3) + x2) + x1)) |
---|
16 | | - | let x8 = sha256(((((((((toBytes(1) + x7) + x6) + x5) + x4) + x3) + x2) + x1) + toBytes(wavesBalance(this)))) |
---|
17 | | - | let x9 = sha256(((((((((toBytes(1) + x8) + x6) + x5) + x4) + x3) + x2) + x1) + toBytes(wavesBalance(this)))) |
---|
18 | | - | let x10 = sha256(((toBytes(1) + x9) + toBytes(wavesBalance(this)))) |
---|
19 | | - | let x11 = sha256(((toBytes(1) + x10) + toBytes(wavesBalance(this)))) |
---|
20 | | - | let x12 = sha256(((toBytes(1) + x11) + toBytes(wavesBalance(this)))) |
---|
21 | | - | let x13 = sha256(((toBytes(1) + x12) + toBytes(wavesBalance(this)))) |
---|
22 | | - | let x14 = sha256(((toBytes(1) + x13) + toBytes(wavesBalance(this)))) |
---|
23 | | - | let x15 = sha256(((toBytes(1) + x14) + toBytes(wavesBalance(this)))) |
---|
24 | | - | let x16 = sha256(((toBytes(1) + x15) + toBytes(wavesBalance(this)))) |
---|
25 | | - | let x17 = sha256(((toBytes(1) + x16) + toBytes(wavesBalance(this)))) |
---|
26 | | - | let x18 = sha256(((toBytes(1) + x17) + toBytes(wavesBalance(this)))) |
---|
27 | | - | let x19 = sha256(((toBytes(1) + x18) + toBytes(wavesBalance(this)))) |
---|
28 | | - | let x20 = sha256(((toBytes(1) + x19) + toBytes(wavesBalance(this)))) |
---|
29 | | - | let x21 = sha256(((toBytes(1) + x20) + toBytes(wavesBalance(this)))) |
---|
30 | | - | let x22 = sha256(((toBytes(1) + x21) + toBytes(wavesBalance(this)))) |
---|
31 | | - | let x23 = sha256(((toBytes(1) + x22) + toBytes(wavesBalance(this)))) |
---|
32 | | - | let x24 = sha256(((toBytes(1) + x23) + toBytes(wavesBalance(this)))) |
---|
33 | | - | let x25 = sha256(((toBytes(1) + x24) + toBytes(wavesBalance(this)))) |
---|
34 | | - | let x26 = sha256(((toBytes(1) + x25) + toBytes(wavesBalance(this)))) |
---|
35 | | - | let x27 = sha256(((toBytes(1) + x26) + toBytes(wavesBalance(this)))) |
---|
36 | | - | let x28 = sha256(((toBytes(1) + x27) + toBytes(wavesBalance(this)))) |
---|
37 | | - | let x29 = sha256(((toBytes(1) + x28) + toBytes(wavesBalance(this)))) |
---|
38 | | - | let x30 = sha256((toBytes(1) + x29)) |
---|
39 | | - | ScriptResult(WriteSet([DataEntry("x", x30)]), TransferSet(nil)) |
---|
40 | | - | } |
---|
41 | | - | |
---|
42 | | - | |
---|
43 | | - | |
---|
44 | | - | @Callable(inv) |
---|
45 | | - | func foo () = { |
---|
46 | | - | let rand = (((inv.callerPublicKey + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) |
---|
47 | | - | let x1 = sha256(rand) |
---|
48 | | - | let x2 = sha256(toBytes(1)) |
---|
49 | | - | let x3 = sha256(((toBytes(1) + x2) + x1)) |
---|
50 | | - | let x4 = sha256((toBytes(1) + x3)) |
---|
51 | | - | let x5 = sha256(((((toBytes(1) + x4) + x3) + x2) + x1)) |
---|
52 | | - | let x6 = sha256((((((toBytes(1) + x5) + x4) + x3) + x2) + x1)) |
---|
53 | | - | let x7 = sha256(((((((toBytes(1) + x6) + x5) + x4) + x3) + x2) + x1)) |
---|
54 | | - | let x8 = sha256(((((((((toBytes(1) + x7) + x6) + x5) + x4) + x3) + x2) + x1) + toBytes(wavesBalance(this)))) |
---|
55 | | - | let x9 = sha256(((((((((toBytes(1) + x8) + x6) + x5) + x4) + x3) + x2) + x1) + toBytes(wavesBalance(this)))) |
---|
56 | | - | let x10 = sha256(((toBytes(1) + x9) + toBytes(wavesBalance(this)))) |
---|
57 | | - | let x11 = sha256(((toBytes(1) + x10) + toBytes(wavesBalance(this)))) |
---|
58 | | - | let x12 = sha256(((toBytes(1) + x11) + toBytes(wavesBalance(this)))) |
---|
59 | | - | let x13 = sha256(((toBytes(1) + x12) + toBytes(wavesBalance(this)))) |
---|
60 | | - | let x14 = sha256(((toBytes(1) + x13) + toBytes(wavesBalance(this)))) |
---|
61 | | - | let x15 = sha256(((toBytes(1) + x14) + toBytes(wavesBalance(this)))) |
---|
62 | | - | let x16 = sha256(((toBytes(1) + x15) + toBytes(wavesBalance(this)))) |
---|
63 | | - | let x17 = sha256(((toBytes(1) + x16) + toBytes(wavesBalance(this)))) |
---|
64 | | - | let x18 = sha256(((toBytes(1) + x17) + toBytes(wavesBalance(this)))) |
---|
65 | | - | let x19 = sha256(((toBytes(1) + x18) + toBytes(wavesBalance(this)))) |
---|
66 | | - | let x20 = sha256(((toBytes(1) + x19) + toBytes(wavesBalance(this)))) |
---|
67 | | - | let x21 = sha256(((toBytes(1) + x20) + toBytes(wavesBalance(this)))) |
---|
68 | | - | let x22 = sha256(((toBytes(1) + x21) + toBytes(wavesBalance(this)))) |
---|
69 | | - | let x23 = sha256(((toBytes(1) + x22) + toBytes(wavesBalance(this)))) |
---|
70 | | - | let x24 = sha256(((toBytes(1) + x23) + toBytes(wavesBalance(this)))) |
---|
71 | | - | let x25 = sha256(((toBytes(1) + x24) + toBytes(wavesBalance(this)))) |
---|
72 | | - | let x26 = sha256(((toBytes(1) + x25) + toBytes(wavesBalance(this)))) |
---|
73 | | - | let x27 = sha256(((((toBytes(1) + x26) + toBytes(2)) + toBytes(3)) + toBytes(4))) |
---|
74 | | - | let x30 = sha256((toBytes(1) + x27)) |
---|
75 | | - | ScriptResult(WriteSet([DataEntry("x", x30)]), TransferSet(nil)) |
---|
76 | | - | } |
---|