tx · AUTbSunkTd2aQqgLmYuFq3BLYykydsRzitwPP8HuWPkV

3N2pknHQmGPrp2mGouxP6jQShgSfD96PcbE:  -0.01500000 Waves

2019.07.25 18:18 [601736] smart account 3N2pknHQmGPrp2mGouxP6jQShgSfD96PcbE > SELF 0.00000000 Waves

{ "type": 13, "id": "AUTbSunkTd2aQqgLmYuFq3BLYykydsRzitwPP8HuWPkV", "fee": 1500000, "feeAssetId": null, "timestamp": 1564067889896, "version": 1, "sender": "3N2pknHQmGPrp2mGouxP6jQShgSfD96PcbE", "senderPublicKey": "9iUSMzVcoUXujLkmKJkoVNZm62kXqxTc3voikrvcURX6", "proofs": [ "3xYeiEuaU2Ght7RY2kMLx5YyCxKkTJcXxv81ZtH2VutBJyPZPYwhXvtwxHQ8A9QajA5SgQbeZGMEEDiWbmbDbyDW" ], "script": "base64:AAIDAAAAAAAAAAAAAAAYAAAAAAlSU0FQVUJMSUMJAAJbAAAAAQIAAAGPYmFzZTY0Ok1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBbXB1WGNJL280cElCNXl3djlET09HYXBUQlV3UlZsTS82K0g2aEZlbE9YdGtyd1kvWUl0bVB4RURwejdyQWVyUVBRZTl0RFBFYUF2L0dubEV6dHliT0ZYZ3U5RHpEZThZb01SRDF2YWtnb0Fjb2dtYlk1OFFENktNajVIa29Wai95VE5JYzlzemo1cWhJbHJBZG1iM0tMTDZoUVU3eTgrSmo2OUJXVlBzYVFna3NwU2RlWXRiMXRIUWM3dDk1bjdPWjU2cjJBN0czK2JRZjZuU01rUGtBaElyRXBiQ201OG9pR0JjemRUZC9McUZTVm90WnNiTDdZaDZTSExmbkhlRCtRZ2NmSnJuYW04T0hNR0pFSlRSWGpJTGVIR2psUkNQOG9WcGlvSHJ5MVMyeFB4NXNWekltMk1NK0N6WWVuQUdsbzBqMjZhdEJoaVVMb1R1bHdEM3BRSURBUUFCAAAAAAZTRVJWRVIJAQAAABxAZXh0clVz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lRHR4S2V5AAAAAgUAAAAJc2Vzc2lvbklkCQABkQAAAAIIBQAAAANkdHgAAAAEZGF0YQAAAAAAAAAAAQcDCQAAZwAAAAIAAAAAAAAAAAIFAAAAEGRhdGFFbnRyaWVzQ291bnQGCQEAAAAOdmFsaWRhdGVEdHhLZXkAAAACBQAAAAlzZXNzaW9uSWQJAAGRAAAAAggFAAAAA2R0eAAAAARkYXRhAAAAAAAAAAACBwMJAABnAAAAAgAAAAAAAAAAAwUAAAAQZGF0YUVudHJpZXNDb3VudAYJAQAAAA52YWxpZGF0ZUR0eEtleQAAAAIFAAAACXNlc3Npb25JZAkAAZEAAAACCAUAAAADZHR4AAAABGRhdGEAAAAAAAAAAAMHAwkAAGcAAAACAAAAAAAAAAAEBQAAABBkYXRhRW50cmllc0NvdW50BgkBAAAADnZhbGlkYXRlRHR4S2V5AAAAAgUAAAAJc2Vzc2lvbklkCQABkQAAAAIIBQAAAANkdHgAAAAEZGF0YQAAAAAAAAAABAcDCQAAZwAAAAIAAAAAAAAAAAUFAAAAEGRhdGFFbnRyaWVzQ291bnQGCQEAAAAOdmFsaWRhdGVEdHhLZXkAAAACBQAAAAlzZXNzaW9uSWQJAAGRAAAAAggFAAAAA2R0eAAAAARkYXRhAAAAAAAAAAAFBwMDAwkAAAAAAAACBQAAAAlkcmF3U3RhdGUFAAAACVNUQVRFSU5JVAUAAAAIc2lnVmFsaWQHBQAAAA1kYXRhU2l6ZVZhbGlkBwUAAAAJa2V5c1ZhbGlkBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAABHNzdHgFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAN0dHgFAAAAByRtYXRjaDAGB/8QYdE=", "chainId": 84, "height": 601736, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let RSAPUBLIC = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmpuXcI/o4pIB5ywv9DOOGapTBUwRVlM/6+H6hFelOXtkrwY/YItmPxEDpz7rAerQPQe9tDPEaAv/GnlEztybOFXgu9DzDe8YoMRD1vakgoAcogmbY58QD6KMj5HkoVj/yTNIc9szj5qhIlrAdmb3KLL6hQU7y8+Jj69BWVPsaQgkspSdeYtb1tHQc7t95n7OZ56r2A7G3+bQf6nSMkPkAhIrEpbCm58oiGBczdTd/LqFSVotZsbL7Yh6SHLfnHeD+QgcfJrnam8OHMGJEJTRXjILeHGjlRCP8oVpioHry1S2xPx5sVzIm2MM+CzYenAGlo0j26atBhiULoTulwD3pQIDAQAB")
5+
6+let SERVER = addressFromStringValue("3NCiG28LmWyTigWG13E5QnvdHBsZFYXSS2j")
7+
8+let WAVELET = ((100 * 1000) * 1000)
9+
10+let SESSIONIDFIXSIZE = 44
11+
12+let RANDCYCLEPRICE = ((5 * WAVELET) / 1000)
13+
14+let MAXRANDSPERCYCLE = 14
15+
16+let STATEINIT = "INIT"
17+
18+let DATADONE = "READY"
19+
20+let STATEFINISHED = "FINISHED"
21+
22+let IdxState = 0
23+
24+let IdxOrganizerPub = 1
25+
26+let IdxRandFrom = 2
27+
28+let IdxRandTo = 3
29+
30+let IdxRandsCount = 4
31+
32+let IdxRemainRandsCount = 5
33+
34+let IdxDataDoneTxId = 6
35+
36+let IdxLastOffset = 7
37+
38+let IdxCurrRands = 8
39+
40+func abs (val) = if ((0 > val))
41+ then -(val)
42+ else val
43+
44+
45+func formatStateDataStr (drawState,organizerPubKey58,randFrom,randTo,randsCount,remainingRands,dataDoneTxId,lastOffset,randOrEmpty) = {
46+ let fullStateStr = ((((((((((((((drawState + "_") + organizerPubKey58) + "_") + randFrom) + "_") + randTo) + "_") + randsCount) + "_") + remainingRands) + "_") + dataDoneTxId) + "_") + lastOffset)
47+ if ((randOrEmpty == ""))
48+ then ((fullStateStr + "_") + "-")
49+ else ((fullStateStr + "_") + randOrEmpty)
50+ }
51+
52+
53+func extractGameDataList (sessionId) = {
54+ let rawDataStr = getStringValue(this, sessionId)
55+ split(rawDataStr, "_")
56+ }
57+
58+
59+func nextRand (div,min,currRandsStr,remainingRands,remainingHash) = {
60+ let nextRandInt = ((abs(toInt(remainingHash)) % div) + min)
61+ let nextRandStr = toString(nextRandInt)
62+ let duplicate = isDefined(indexOf(currRandsStr, nextRandStr))
63+ if (if (!(duplicate))
64+ then (remainingRands > 0)
65+ else false)
66+ then [((currRandsStr + "-") + nextRandStr), "yes"]
67+ else [currRandsStr, ""]
68+ }
69+
70+
71+func generateRand (sessionId,from,to,rsaSign,currRandsStr,remainingRands,lastOffsetBytes) = {
72+ let randHash = rsaSign
73+ let div = ((to - from) + 1)
74+ let rand1 = nextRand(div, from, currRandsStr, remainingRands, drop(randHash, (lastOffsetBytes + 1)))
75+ let rem1 = if ((rand1[1] != ""))
76+ then (remainingRands - 1)
77+ else remainingRands
78+ let rand2 = nextRand(div, from, rand1[0], rem1, drop(randHash, (lastOffsetBytes + 2)))
79+ let rem2 = if ((rand2[1] != ""))
80+ then (rem1 - 1)
81+ else rem1
82+ let rand3 = nextRand(div, from, rand2[0], rem2, drop(randHash, (lastOffsetBytes + 3)))
83+ let rem3 = if ((rand3[1] != ""))
84+ then (rem2 - 1)
85+ else rem2
86+ let rand4 = nextRand(div, from, rand3[0], rem3, drop(randHash, (lastOffsetBytes + 4)))
87+ let rem4 = if ((rand4[1] != ""))
88+ then (rem3 - 1)
89+ else rem3
90+ let rand5 = nextRand(div, from, rand4[0], rem4, drop(randHash, (lastOffsetBytes + 5)))
91+ let rem5 = if ((rand5[1] != ""))
92+ then (rem4 - 1)
93+ else rem4
94+ let rand6 = nextRand(div, from, rand5[0], rem5, drop(randHash, (lastOffsetBytes + 6)))
95+ let rem6 = if ((rand6[1] != ""))
96+ then (rem5 - 1)
97+ else rem5
98+ let rand7 = nextRand(div, from, rand6[0], rem6, drop(randHash, (lastOffsetBytes + 7)))
99+ let rem7 = if ((rand7[1] != ""))
100+ then (rem6 - 1)
101+ else rem6
102+ let rand8 = nextRand(div, from, rand7[0], rem7, drop(randHash, (lastOffsetBytes + 8)))
103+ let rem8 = if ((rand8[1] != ""))
104+ then (rem7 - 1)
105+ else rem7
106+ let rand9 = nextRand(div, from, rand8[0], rem8, drop(randHash, (lastOffsetBytes + 9)))
107+ let rem9 = if ((rand9[1] != ""))
108+ then (rem8 - 1)
109+ else rem8
110+ let rand10 = nextRand(div, from, rand9[0], rem9, drop(randHash, (lastOffsetBytes + 10)))
111+ let rem10 = if ((rand10[1] != ""))
112+ then (rem9 - 1)
113+ else rem9
114+ let rand11 = nextRand(div, from, rand10[0], rem10, drop(randHash, (lastOffsetBytes + 11)))
115+ let rem11 = if ((rand11[1] != ""))
116+ then (rem10 - 1)
117+ else rem10
118+ let rand12 = nextRand(div, from, rand11[0], rem11, drop(randHash, (lastOffsetBytes + 12)))
119+ let rem12 = if ((rand12[1] != ""))
120+ then (rem11 - 1)
121+ else rem11
122+ let rand13 = nextRand(div, from, rand12[0], rem12, drop(randHash, (lastOffsetBytes + 13)))
123+ let rem13 = if ((rand13[1] != ""))
124+ then (rem12 - 1)
125+ else rem12
126+ let rand14 = nextRand(div, from, rand13[0], rem13, drop(randHash, (lastOffsetBytes + 14)))
127+ let rem14 = if ((rand14[1] != ""))
128+ then (rem13 - 1)
129+ else rem13
130+[rand14[0], if ((rem14 == 0))
131+ then "0"
132+ else toString(rem14), toString((lastOffsetBytes + 14))]
133+ }
134+
135+
136+func validateDtxKey (sessionId,data) = if (if (if ((sessionId == take(data.key, SESSIONIDFIXSIZE)))
137+ then (size(data.key) > SESSIONIDFIXSIZE)
138+ else false)
139+ then !(isDefined(getString(this, data.key)))
140+ else false)
141+ then match data.value {
142+ case str: String =>
143+ true
144+ case _ =>
145+ throw((sessionId + " draw: only String type is accepted for data transactions"))
146+ }
147+ else false
148+
149+
150+@Callable(i)
151+func initDraw (randFrom,randTo,randsCount) = {
152+ let sessionId = toBase58String(i.transactionId)
153+ if (if ((0 >= randFrom))
154+ then true
155+ else (0 >= randTo))
156+ then throw("randFrom and randTo must be greater than 0")
157+ else if ((randFrom >= randTo))
158+ then throw("randFrom must be strict less then randTo")
159+ else if ((randsCount > ((randTo - randFrom) + 1)))
160+ then throw(((((("Impossible to generate " + toString(randsCount)) + " for provided random range - from ") + toString(randFrom)) + " to ") + toString(randTo)))
161+ else {
162+ let organizerPubKey58 = toBase58String(i.callerPublicKey)
163+ let randsCountStr = toString(randsCount)
164+ let initState = formatStateDataStr(STATEINIT, organizerPubKey58, toString(randFrom), toString(randTo), randsCountStr, randsCountStr, "null", "0", "")
165+ ScriptResult(WriteSet([DataEntry(sessionId, initState)]), TransferSet([ScriptTransfer(SERVER, 1000, unit)]))
166+ }
167+ }
168+
169+
170+
171+@Callable(i)
172+func ready (sessionId) = {
173+ let drawParamsList = extractGameDataList(sessionId)
174+ let drawState = drawParamsList[IdxState]
175+ let organizerPubKey58 = drawParamsList[IdxOrganizerPub]
176+ let randsCountStr = drawParamsList[IdxRandsCount]
177+ let remainRandsCountStr = drawParamsList[IdxRemainRandsCount]
178+ let fromStr = drawParamsList[IdxRandFrom]
179+ let toStr = drawParamsList[IdxRandTo]
180+ let organizerPubKey = fromBase58String(organizerPubKey58)
181+ if ((drawState != STATEINIT))
182+ then throw((sessionId + " draw: moving into READY state is allowed only from INIT state"))
183+ else if ((organizerPubKey != i.callerPublicKey))
184+ then throw((sessionId + "draw: moving into READY state is allowed for organizer only"))
185+ else {
186+ let readyState = formatStateDataStr(DATADONE, organizerPubKey58, fromStr, toStr, randsCountStr, remainRandsCountStr, toBase58String(i.transactionId), "0", "")
187+ WriteSet([DataEntry(sessionId, readyState)])
188+ }
189+ }
190+
191+
192+
193+@Callable(i)
194+func random (sessionId,rsaSign) = {
195+ let drawParamsList = extractGameDataList(sessionId)
196+ let drawState = drawParamsList[IdxState]
197+ let organizerPubKey58 = drawParamsList[IdxOrganizerPub]
198+ let randsCountStr = drawParamsList[IdxRandsCount]
199+ let remainRandsCount = parseIntValue(drawParamsList[IdxRemainRandsCount])
200+ let lastOffsetBytes = parseIntValue(drawParamsList[IdxLastOffset])
201+ let currRandsStr = drawParamsList[IdxCurrRands]
202+ let fromStr = drawParamsList[IdxRandFrom]
203+ let toStr = drawParamsList[IdxRandTo]
204+ let dataDoneTxId = drawParamsList[IdxDataDoneTxId]
205+ let from = parseIntValue(fromStr)
206+ let to = parseIntValue(toStr)
207+ let organizerPubKey = fromBase58String(organizerPubKey58)
208+ if ((drawState != DATADONE))
209+ then throw((sessionId + " draw: it must be in READY state to generate random numbers"))
210+ else if (!(rsaVerify(SHA256, (toBytes(sessionId) + toBytes(dataDoneTxId)), rsaSign, RSAPUBLIC)))
211+ then throw("Invalid RSA signature")
212+ else {
213+ let randGenInfo = generateRand(sessionId, from, to, rsaSign, currRandsStr, remainRandsCount, lastOffsetBytes)
214+ let newRandsStr = randGenInfo[0]
215+ let newRemainRandsCountStr = randGenInfo[1]
216+ let newOffsetBytes = randGenInfo[2]
217+ let newState = if ((newRemainRandsCountStr == "0"))
218+ then STATEFINISHED
219+ else DATADONE
220+ WriteSet([DataEntry(sessionId, formatStateDataStr(newState, organizerPubKey58, fromStr, toStr, randsCountStr, newRemainRandsCountStr, dataDoneTxId, newOffsetBytes, newRandsStr))])
221+ }
222+ }
223+
224+
225+@Verifier(tx)
226+func verify () = match tx {
227+ case dtx: DataTransaction =>
228+ let data0 = dtx.data[0]
229+ let sessionId = take(data0.key, SESSIONIDFIXSIZE)
230+ let drawParamsList = extractGameDataList(sessionId)
231+ let drawState = drawParamsList[0]
232+ let organizerPubKey58 = drawParamsList[1]
233+ let organizerPubKey = fromBase58String(organizerPubKey58)
234+ let dataEntriesCount = size(dtx.data)
235+ let sigValid = sigVerify(tx.bodyBytes, tx.proofs[0], organizerPubKey)
236+ let dataSizeValid = if ((dataEntriesCount > 0))
237+ then (5 >= dataEntriesCount)
238+ else false
239+ let keysValid = if (if (if (if (if (validateDtxKey(sessionId, data0))
240+ then if ((1 >= dataEntriesCount))
241+ then true
242+ else validateDtxKey(sessionId, dtx.data[1])
243+ else false)
244+ then if ((2 >= dataEntriesCount))
245+ then true
246+ else validateDtxKey(sessionId, dtx.data[2])
247+ else false)
248+ then if ((3 >= dataEntriesCount))
249+ then true
250+ else validateDtxKey(sessionId, dtx.data[3])
251+ else false)
252+ then if ((4 >= dataEntriesCount))
253+ then true
254+ else validateDtxKey(sessionId, dtx.data[4])
255+ else false)
256+ then if ((5 >= dataEntriesCount))
257+ then true
258+ else validateDtxKey(sessionId, dtx.data[5])
259+ else false
260+ if (if (if ((drawState == STATEINIT))
261+ then sigValid
262+ else false)
263+ then dataSizeValid
264+ else false)
265+ then keysValid
266+ else false
267+ case sstx: SetScriptTransaction =>
268+ true
269+ case ttx: TransferTransaction =>
270+ true
271+ case _ =>
272+ false
273+}
274+

github/deemru/w8io/026f985 
22.90 ms