tx · DBLbhHFaizgYow4i1X3FTKK94mRRCXAeNZzpCxrTc2R9

3MqtTwie8XKCcUcntgFAFYnfLEnffezju4Y:  -0.01500000 Waves

2019.08.13 16:49 [629383] smart account 3MqtTwie8XKCcUcntgFAFYnfLEnffezju4Y > SELF 0.00000000 Waves

{ "type": 13, "id": "DBLbhHFaizgYow4i1X3FTKK94mRRCXAeNZzpCxrTc2R9", "fee": 1500000, "feeAssetId": null, "timestamp": 1565704170599, "version": 1, "sender": "3MqtTwie8XKCcUcntgFAFYnfLEnffezju4Y", "senderPublicKey": "Gf4eU8JJaQziR7AfnST6tmzhUgFmeKavkwyoceen3PK1", "proofs": [ "GRwbYS2991EoDBwvqP4qZ8of9xhowFwGsmL9uXC9JX1GPRXu8NKttrdk4UjdKbg1JNzDao943a9Rwh24Va374LT" ], "script": "base64:AAIDAAAAAAAAAAAAAAAaAAAAAAlSU0FQVUJMSUMJAAJbAAAAAQIAAAGPYmFzZTY0Ok1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBcWxBaUFOU21CcERIWUtQOXNLZ2VOL2wxYkFiMjhnL3RHbGdEa3dUNUZpTU40WDNwd2R2ZHhFN212U1I4LzQxZFU5cng0akcrNnRacGIxVUxWRFBzNDMxdFIySVJhVFh3NUNqK0FjMnZoTCs1SmFtQ2VyR0QxVVcrYmgvRUdRdHhvOFczWUxEcm9mWEI1UUhKeDRQa3oyS2dmK29TL0M4aEh1Qi9VNGtyTzc2VTA1MDdHVGpaUFA5a1JRMHVMU01lcVFYdDh3WFMrbk1wNXdhanF4UHBETE1hU1JFZ3NLd3YvQUVrUDRkenBUWWJpa0xCWWw0cXRkSnNEODRITEZTa2l3ZDNCaGNPclBqb0lZbUx4UXVCRDVUSU1LVEtEM3NkWmdhWTlyc3lxeDNBMDBpbm55eEQ2enAzYjRnRnBVT1g4SnhLWmRFQzJteUVxbGVOZ2c3R3p3SURBUUFCAAAAAAZTRVJWRVIJAQAAABx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WQJAAACAAAAAQkAASwAAAACAgAAAC9JbnZhbGlkIERhdGFUcmFuc2FjdGlvbiBmZWUuIEZlZSBtdXN0IGJlIGV4YWN0IAkAAaQAAAABBQAAAAptaW5EYXRhUG10AwkBAAAAASEAAAABBQAAAA1kYXRhU2l6ZVZhbGlkCQAAAgAAAAEJAAEsAAAAAgIAAAA9SW52YWxpZCBkYXRhIGVudHJpZXMgY291bnQuIERhdGEgZW50cmllcyBjb3VudCBtdXN0IGJlIGV4YWN0IAkAAaQAAAABBQAAABdhbGxvd2VkRGF0YUVudHJpZXNDb3VudAMJAQAAAAEhAAAAAQUAAAAJa2V5c1ZhbGlkCQAAAgAAAAECAAAAGEludmFsaWQgZGF0YSBrZXlzIGZvcm1hdAMJAQAAAAEhAAAAAQUAAAAMZHR4U2l6ZVZhbGlkCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACAgAAADJJbnZhbGlkIERhdGFUcmFuc2FjdGlvbiBzaXplLiBNYXggYWxsb3dlZCBzaXplIGlzIAkAAaQAAAABBQAAAA5hbGxvd2VkRHR4U2l6ZQIAAAAGIGJ5dGVzBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAABHNzdHgFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAN0dHgFAAAAByRtYXRjaDAGB8O2rYw=", "chainId": 84, "height": 629383, "spentComplexity": 0 } View: original | compacted Prev: F6RpxQT5HqcMhmoYwPTaxvfC5AdZ9JNwsdsAU6tCBuGR Next: Gfa99MNQTsgix7d43VeDub1LHuUb4LS1GZShfUXxF81s Diff:
OldNewDifferences
225225 then throw("Please provide payment to generate unique random numbers")
226226 else {
227227 let pmt = extract(i.payment)
228- let minDataPmt = ((5 * WAVELET) / 1000)
228+ let minDataPmt = ((((WAVELET * 1) / 1000) * 33) + ((WAVELET * 4) / 1000))
229229 let randsPmt = validateAndGetRandsPmt(randsCount, pmt, minDataPmt)
230230 let dataPmt = (pmt.amount - randsPmt)
231231 let dataTxCount = (dataPmt / minDataPmt)
309309 let dataKeysCount = parseIntValue(drawParamsList[IdxDataKeysCount])
310310 let organizerPubKey = fromBase58String(organizerPubKey58)
311311 let dataEntriesCount = size(dtx.data)
312+ let allowedDataEntriesCount = 5
313+ let allowedDtxSize = (32 * 1024)
312314 let sigValid = sigVerify(tx.bodyBytes, tx.proofs[0], organizerPubKey)
313- let dataSizeValid = (dataEntriesCount == 5)
314- let feeValid = (dtx.fee == ((WAVELET * 5) / 1000))
315+ let dataSizeValid = (dataEntriesCount == allowedDataEntriesCount)
316+ let minDataPmt = ((((WAVELET * 1) / 1000) * 33) + ((WAVELET * 4) / 1000))
317+ let feeValid = (dtx.fee == minDataPmt)
315318 let keysValid = if (if (if (if (validateDtxKey(sessionId, dataKeysCount, data0))
316319 then validateDtxKey(sessionId, dataKeysCount, dtx.data[1])
317320 else false)
321324 else false)
322325 then validateDtxKey(sessionId, dataKeysCount, dtx.data[4])
323326 else false
324- if (if (if (if ((drawState == STATEINIT))
325- then sigValid
326- else false)
327- then feeValid
328- else false)
329- then dataSizeValid
330- else false)
331- then keysValid
332- else false
327+ let dtxSizeValid = (allowedDtxSize >= size(dtx.bodyBytes))
328+ if ((drawState != STATEINIT))
329+ then throw(((("Data transaction is allowed for " + STATEINIT) + " status only, current status is ") + drawState))
330+ else if (!(sigValid))
331+ then throw("Invalid data transaction signature")
332+ else if (!(feeValid))
333+ then throw(("Invalid DataTransaction fee. Fee must be exact " + toString(minDataPmt)))
334+ else if (!(dataSizeValid))
335+ then throw(("Invalid data entries count. Data entries count must be exact " + toString(allowedDataEntriesCount)))
336+ else if (!(keysValid))
337+ then throw("Invalid data keys format")
338+ else if (!(dtxSizeValid))
339+ then throw((("Invalid DataTransaction size. Max allowed size is " + toString(allowedDtxSize)) + " bytes"))
340+ else true
333341 case sstx: SetScriptTransaction =>
334342 true
335343 case ttx: TransferTransaction =>
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let RSAPUBLIC = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqlAiANSmBpDHYKP9sKgeN/l1bAb28g/tGlgDkwT5FiMN4X3pwdvdxE7mvSR8/41dU9rx4jG+6tZpb1ULVDPs431tR2IRaTXw5Cj+Ac2vhL+5JamCerGD1UW+bh/EGQtxo8W3YLDrofXB5QHJx4Pkz2Kgf+oS/C8hHuB/U4krO76U0507GTjZPP9kRQ0uLSMeqQXt8wXS+nMp5wajqxPpDLMaSREgsKwv/AEkP4dzpTYbikLBYl4qtdJsD84HLFSkiwd3BhcOrPjoIYmLxQuBD5TIMKTKD3sdZgaY9rsyqx3A00innyxD6zp3b4gFpUOX8JxKZdEC2myEqleNgg7GzwIDAQAB")
55
66 let SERVER = addressFromStringValue("3NCiG28LmWyTigWG13E5QnvdHBsZFYXSS2j")
77
88 let WAVELET = ((100 * 1000) * 1000)
99
1010 let SESSIONIDFIXSIZE = 44
1111
1212 let RANDCYCLEPRICE = ((5 * WAVELET) / 1000)
1313
1414 let MAXRANDSPERCYCLE = 14
1515
1616 let STATEINIT = "INIT"
1717
1818 let DATADONE = "READY"
1919
2020 let STATEFINISHED = "FINISHED"
2121
2222 let IdxState = 0
2323
2424 let IdxOrganizerPub = 1
2525
2626 let IdxRandFrom = 2
2727
2828 let IdxRandTo = 3
2929
3030 let IdxRandsCount = 4
3131
3232 let IdxRemainRandsCount = 5
3333
3434 let IdxDataKeysCount = 6
3535
3636 let IdxDataDoneTxId = 7
3737
3838 let IdxLastOffset = 8
3939
4040 let IdxCurrRands = 13
4141
4242 func abs (val) = if ((0 > val))
4343 then -(val)
4444 else val
4545
4646
4747 func formatStateDataStr (drawState,organizerPubKey58,randFrom,randTo,randsCount,remainingRands,dataKeysCount,dataDoneTxId,lastOffset,slowIdx1,slowIdx2,fastIdx1,fastIdx2,randOrEmpty) = {
4848 let fullStateStr = ((((((((((((((((((((((((drawState + "_") + organizerPubKey58) + "_") + randFrom) + "_") + randTo) + "_") + randsCount) + "_") + remainingRands) + "_") + dataKeysCount) + "_") + dataDoneTxId) + "_") + lastOffset) + "_") + slowIdx1) + "_") + slowIdx2) + "_") + fastIdx1) + "_") + fastIdx2)
4949 if ((randOrEmpty == ""))
5050 then ((fullStateStr + "_") + "-")
5151 else ((fullStateStr + "_") + randOrEmpty)
5252 }
5353
5454
5555 func extractGameDataList (sessionId) = {
5656 let rawDataStr = getStringValue(this, sessionId)
5757 split(rawDataStr, "_")
5858 }
5959
6060
6161 func nextRand (div,min,currRandsStr,remainingRands,remainingHash) = {
6262 let nextRandInt = ((abs(toInt(remainingHash)) % div) + min)
6363 let nextRandStr = toString(nextRandInt)
6464 let duplicate = isDefined(indexOf(currRandsStr, nextRandStr))
6565 if (if (!(duplicate))
6666 then (remainingRands > 0)
6767 else false)
6868 then [((currRandsStr + "-") + nextRandStr), "yes"]
6969 else [currRandsStr, ""]
7070 }
7171
7272
7373 func generateRand (sessionId,from,to,rsaSign,currRandsStr,remainingRands,lastOffsetBytes,currSlowIdx1,currSlowIdx2,currFastIdx1,currFastIdx2) = {
7474 let newIncList = if (((lastOffsetBytes + 1) > 87))
7575 then if ((currFastIdx2 > 241))
7676 then [0, (currSlowIdx1 + 1), (currSlowIdx2 + 1), 0, 1]
7777 else [0, currSlowIdx1, currSlowIdx2, (currFastIdx1 + 1), (currFastIdx2 + 1)]
7878 else [(lastOffsetBytes + 1), currSlowIdx1, currSlowIdx2, currFastIdx1, currFastIdx2]
7979 let newOffsetBytes = newIncList[0]
8080 let newSlowIdx1 = newIncList[1]
8181 let newSlowIdx2 = newIncList[2]
8282 let newFastIdx1 = newIncList[3]
8383 let newFastIdx2 = newIncList[4]
8484 let byteVect = (((((((take(drop(rsaSign, newSlowIdx1), 1) + take(drop(rsaSign, 1), 1)) + take(drop(rsaSign, newFastIdx1), 1)) + take(drop(rsaSign, 3), 1)) + take(drop(rsaSign, newSlowIdx2), 1)) + take(drop(rsaSign, 5), 1)) + take(drop(rsaSign, 6), 1)) + take(drop(rsaSign, newFastIdx2), 1))
8585 let randHash = ((sha256(byteVect) + blake2b256(byteVect)) + keccak256(byteVect))
8686 let div = ((to - from) + 1)
8787 let rand1 = nextRand(div, from, currRandsStr, remainingRands, drop(randHash, newOffsetBytes))
8888 let rem1 = if ((rand1[1] != ""))
8989 then (remainingRands - 1)
9090 else remainingRands
9191 let rand2 = nextRand(div, from, rand1[0], rem1, drop(randHash, (newOffsetBytes + 1)))
9292 let rem2 = if ((rand2[1] != ""))
9393 then (rem1 - 1)
9494 else rem1
9595 let rand3 = nextRand(div, from, rand2[0], rem2, drop(randHash, (newOffsetBytes + 2)))
9696 let rem3 = if ((rand3[1] != ""))
9797 then (rem2 - 1)
9898 else rem2
9999 let rand4 = nextRand(div, from, rand3[0], rem3, drop(randHash, (newOffsetBytes + 3)))
100100 let rem4 = if ((rand4[1] != ""))
101101 then (rem3 - 1)
102102 else rem3
103103 let rand5 = nextRand(div, from, rand4[0], rem4, drop(randHash, (newOffsetBytes + 4)))
104104 let rem5 = if ((rand5[1] != ""))
105105 then (rem4 - 1)
106106 else rem4
107107 let rand6 = nextRand(div, from, rand5[0], rem5, drop(randHash, (newOffsetBytes + 5)))
108108 let rem6 = if ((rand6[1] != ""))
109109 then (rem5 - 1)
110110 else rem5
111111 let rand7 = nextRand(div, from, rand6[0], rem6, drop(randHash, (newOffsetBytes + 6)))
112112 let rem7 = if ((rand7[1] != ""))
113113 then (rem6 - 1)
114114 else rem6
115115 let rand8 = nextRand(div, from, rand7[0], rem7, drop(randHash, (newOffsetBytes + 7)))
116116 let rem8 = if ((rand8[1] != ""))
117117 then (rem7 - 1)
118118 else rem7
119119 let rand9 = nextRand(div, from, rand8[0], rem8, drop(randHash, (newOffsetBytes + 8)))
120120 let rem9 = if ((rand9[1] != ""))
121121 then (rem8 - 1)
122122 else rem8
123123 let rand10 = nextRand(div, from, rand9[0], rem9, drop(randHash, (newOffsetBytes + 9)))
124124 let rem10 = if ((rand10[1] != ""))
125125 then (rem9 - 1)
126126 else rem9
127127 let rand11 = nextRand(div, from, rand10[0], rem10, drop(randHash, (newOffsetBytes + 10)))
128128 let rem11 = if ((rand11[1] != ""))
129129 then (rem10 - 1)
130130 else rem10
131131 [rand11[0], if ((rem11 == 0))
132132 then "0"
133133 else toString(rem11), toString((newOffsetBytes + 10)), toString(newSlowIdx1), toString(newSlowIdx2), toString(newFastIdx1), toString(newFastIdx2)]
134134 }
135135
136136
137137 func validateDtxKey (sessionId,dataKeysCount,data) = {
138138 let dataKeyInfo = split(data.key, "_")
139139 if ((size(dataKeyInfo) != 2))
140140 then throw("Invalid data key format. It must follow to ${sessionId}_${num}")
141141 else {
142142 let keySessionId = dataKeyInfo[0]
143143 let keyPostfix = dataKeyInfo[1]
144144 if ((sessionId != keySessionId))
145145 then throw(((("Several data keys have different sessionId: " + sessionId) + " and ") + keySessionId))
146146 else if (isDefined(getString(this, data.key)))
147147 then throw(("One of the data keys has already presented in account state: key=" + data.key))
148148 else if ((size(keyPostfix) > 4))
149149 then throw("Invalid data key format. It must follow to ${sessionId}_${num} where ${num} length couldn't be greater than 4")
150150 else if ((take(keyPostfix, 1) == "0"))
151151 then throw("Invalid data key format. It must follow to ${sessionId}_${num} where ${num} couldn't start from 0")
152152 else {
153153 let keyPostfixIntOpt = parseInt(keyPostfix)
154154 if (isDefined(keyPostfixIntOpt))
155155 then {
156156 let keyPostfixInt = extract(keyPostfixIntOpt)
157157 if (if ((1 > keyPostfixInt))
158158 then true
159159 else (keyPostfixInt > dataKeysCount))
160160 then throw((((("Invalid data key format. It must follow to ${sessionId}_${num}" + " where ${num} must be a valid int value from 1 to ") + toString(dataKeysCount)) + " but actualNum=") + toString(keyPostfixInt)))
161161 else match data.value {
162162 case str: String =>
163163 true
164164 case _ =>
165165 throw((sessionId + " draw: only String type is accepted for data transactions"))
166166 }
167167 }
168168 else throw((("Invalid data key format. It must follow to ${sessionId}_${num}" + " where ${num} must be a valid int value from 1 to 7145 but actualNum=") + keyPostfix))
169169 }
170170 }
171171 }
172172
173173
174174 func validateAndGetRandsPmt (randsCount,pmt,minDataPmt) = {
175175 let bound1 = 1000
176176 let basePrice1 = ((13 * WAVELET) / 100)
177177 let div1 = 50
178178 let diff1 = ((8 * WAVELET) / 100)
179179 let bound2 = 5000
180180 let basePrice2 = ((297 * WAVELET) / 100)
181181 let div2 = 1000
182182 let diff2 = ((143 * WAVELET) / 100)
183183 let bound3 = 50000
184184 let basePrice3 = ((1427 * WAVELET) / 100)
185185 let div3 = 5000
186186 let diff3 = ((705 * WAVELET) / 100)
187187 let minRandsPmt = if ((bound1 > randsCount))
188188 then (basePrice1 + ((randsCount / div1) * diff1))
189189 else if ((bound2 > randsCount))
190190 then (basePrice2 + (((randsCount / div2) - 1) * diff2))
191191 else if ((bound3 > randsCount))
192192 then (basePrice3 + (((randsCount / div3) - 1) * diff3))
193193 else throw("Please contact our sales team to generate more than 50k rands")
194194 let minPmt = (minRandsPmt + minDataPmt)
195195 if (isDefined(pmt.assetId))
196196 then throw("Only WAVES can be used as a payment for rands generation")
197197 else if ((minPmt > pmt.amount))
198198 then throw(((((("Attached payment is to small to generate " + toString(randsCount)) + " unique randoms numbers and upload at least 1 data tx: actualPmt=") + toString(pmt.amount)) + " but minPmt is ") + toString(minPmt)))
199199 else minRandsPmt
200200 }
201201
202202
203203 @Callable(i)
204204 func initDraw (randFrom,randTo,randsCount) = {
205205 let sessionId = toBase58String(i.transactionId)
206206 let rangeLength = ((randTo - randFrom) + 1)
207207 let maxRangeLength = (rangeLength / 2)
208208 let randToLen = size(toString((randTo - 1)))
209209 let randsCountLen = size(toString(randsCount))
210210 let dynamicStatusLen = (((2 * randToLen) + (2 * randsCountLen)) + 4)
211211 let maxRandsCount = (((5120 - 175) - dynamicStatusLen) / (randToLen + 1))
212212 if (if ((0 >= randFrom))
213213 then true
214214 else (0 >= randTo))
215215 then throw("randFrom and randTo must be greater than 0")
216216 else if ((randFrom >= randTo))
217217 then throw("randFrom must be strict less then randTo")
218218 else if ((randsCount > rangeLength))
219219 then throw(((((((("Impossible to generate " + toString(randsCount)) + " unique numbers for provided random range [") + toString(randFrom)) + ", ") + toString(randTo)) + "] with actual size ") + toString(rangeLength)))
220220 else if ((randsCount > maxRangeLength))
221221 then throw(((((((((("randsCount must be less then 50% of passed range length: range=[" + toString(randFrom)) + ", ") + toString(randTo)) + "], rangeLength=") + toString(rangeLength)) + " randsCount=") + toString(randsCount)) + " allowedRandsCount=") + toString(maxRangeLength)))
222222 else if ((randsCount > maxRandsCount))
223223 then throw(((((("randsCount couldn't be kept in 1 data entry: 1_randNumSpace=" + toString((randToLen + 1))) + " maxAllowedRandsCount=") + toString(maxRandsCount)) + " actualRandsCount=") + toString(randsCount)))
224224 else if (!(isDefined(i.payment)))
225225 then throw("Please provide payment to generate unique random numbers")
226226 else {
227227 let pmt = extract(i.payment)
228- let minDataPmt = ((5 * WAVELET) / 1000)
228+ let minDataPmt = ((((WAVELET * 1) / 1000) * 33) + ((WAVELET * 4) / 1000))
229229 let randsPmt = validateAndGetRandsPmt(randsCount, pmt, minDataPmt)
230230 let dataPmt = (pmt.amount - randsPmt)
231231 let dataTxCount = (dataPmt / minDataPmt)
232232 let dataKeysCount = if ((7145 >= (dataTxCount * 5)))
233233 then (dataTxCount * 5)
234234 else 7145
235235 let organizerPubKey58 = toBase58String(i.callerPublicKey)
236236 let randsCountStr = toString(randsCount)
237237 let initState = formatStateDataStr(STATEINIT, organizerPubKey58, toString(randFrom), toString(randTo), randsCountStr, randsCountStr, toString(dataKeysCount), "null", "0", "0", "1", "0", "1", "")
238238 ScriptResult(WriteSet([DataEntry(sessionId, initState)]), TransferSet([ScriptTransfer(SERVER, randsPmt, unit)]))
239239 }
240240 }
241241
242242
243243
244244 @Callable(i)
245245 func ready (sessionId) = {
246246 let drawParamsList = extractGameDataList(sessionId)
247247 let drawState = drawParamsList[IdxState]
248248 let organizerPubKey58 = drawParamsList[IdxOrganizerPub]
249249 let randsCountStr = drawParamsList[IdxRandsCount]
250250 let remainRandsCountStr = drawParamsList[IdxRemainRandsCount]
251251 let fromStr = drawParamsList[IdxRandFrom]
252252 let toStr = drawParamsList[IdxRandTo]
253253 let dataKeysCount = drawParamsList[IdxDataKeysCount]
254254 let organizerPubKey = fromBase58String(organizerPubKey58)
255255 if ((drawState != STATEINIT))
256256 then throw((sessionId + " draw: moving into READY state is allowed only from INIT state"))
257257 else if ((organizerPubKey != i.callerPublicKey))
258258 then throw((sessionId + "draw: moving into READY state is allowed for organizer only"))
259259 else {
260260 let readyState = formatStateDataStr(DATADONE, organizerPubKey58, fromStr, toStr, randsCountStr, remainRandsCountStr, dataKeysCount, toBase58String(i.transactionId), "0", "0", "1", "0", "1", "")
261261 WriteSet([DataEntry(sessionId, readyState)])
262262 }
263263 }
264264
265265
266266
267267 @Callable(i)
268268 func random (sessionId,rsaSign) = {
269269 let drawParamsList = extractGameDataList(sessionId)
270270 let drawState = drawParamsList[IdxState]
271271 let organizerPubKey58 = drawParamsList[IdxOrganizerPub]
272272 let randsCountStr = drawParamsList[IdxRandsCount]
273273 let remainRandsCount = parseIntValue(drawParamsList[IdxRemainRandsCount])
274274 let lastOffsetBytes = parseIntValue(drawParamsList[IdxLastOffset])
275275 let currRandsStr = drawParamsList[IdxCurrRands]
276276 let fromStr = drawParamsList[IdxRandFrom]
277277 let toStr = drawParamsList[IdxRandTo]
278278 let dataDoneTxId = drawParamsList[IdxDataDoneTxId]
279279 let slowIdx1 = parseIntValue(drawParamsList[9])
280280 let slowIdx2 = parseIntValue(drawParamsList[10])
281281 let fastIdx1 = parseIntValue(drawParamsList[11])
282282 let fastIdx2 = parseIntValue(drawParamsList[12])
283283 let from = parseIntValue(fromStr)
284284 let to = parseIntValue(toStr)
285285 let organizerPubKey = fromBase58String(organizerPubKey58)
286286 if ((drawState != DATADONE))
287287 then throw((sessionId + " draw: it must be in READY state to generate random numbers"))
288288 else if (!(rsaVerify(SHA256, (toBytes(sessionId) + toBytes(dataDoneTxId)), rsaSign, RSAPUBLIC)))
289289 then throw("Invalid RSA signature")
290290 else {
291291 let randGenInfo = generateRand(sessionId, from, to, rsaSign, currRandsStr, remainRandsCount, lastOffsetBytes, slowIdx1, slowIdx2, fastIdx1, fastIdx2)
292292 let newRemainRandsCountStr = randGenInfo[1]
293293 let newState = if ((newRemainRandsCountStr == "0"))
294294 then STATEFINISHED
295295 else DATADONE
296296 WriteSet([DataEntry(sessionId, formatStateDataStr(newState, organizerPubKey58, fromStr, toStr, randsCountStr, newRemainRandsCountStr, drawParamsList[IdxDataKeysCount], dataDoneTxId, randGenInfo[2], randGenInfo[3], randGenInfo[4], randGenInfo[5], randGenInfo[6], randGenInfo[0]))])
297297 }
298298 }
299299
300300
301301 @Verifier(tx)
302302 func verify () = match tx {
303303 case dtx: DataTransaction =>
304304 let data0 = dtx.data[0]
305305 let sessionId = take(data0.key, SESSIONIDFIXSIZE)
306306 let drawParamsList = extractGameDataList(sessionId)
307307 let drawState = drawParamsList[IdxState]
308308 let organizerPubKey58 = drawParamsList[IdxOrganizerPub]
309309 let dataKeysCount = parseIntValue(drawParamsList[IdxDataKeysCount])
310310 let organizerPubKey = fromBase58String(organizerPubKey58)
311311 let dataEntriesCount = size(dtx.data)
312+ let allowedDataEntriesCount = 5
313+ let allowedDtxSize = (32 * 1024)
312314 let sigValid = sigVerify(tx.bodyBytes, tx.proofs[0], organizerPubKey)
313- let dataSizeValid = (dataEntriesCount == 5)
314- let feeValid = (dtx.fee == ((WAVELET * 5) / 1000))
315+ let dataSizeValid = (dataEntriesCount == allowedDataEntriesCount)
316+ let minDataPmt = ((((WAVELET * 1) / 1000) * 33) + ((WAVELET * 4) / 1000))
317+ let feeValid = (dtx.fee == minDataPmt)
315318 let keysValid = if (if (if (if (validateDtxKey(sessionId, dataKeysCount, data0))
316319 then validateDtxKey(sessionId, dataKeysCount, dtx.data[1])
317320 else false)
318321 then validateDtxKey(sessionId, dataKeysCount, dtx.data[2])
319322 else false)
320323 then validateDtxKey(sessionId, dataKeysCount, dtx.data[3])
321324 else false)
322325 then validateDtxKey(sessionId, dataKeysCount, dtx.data[4])
323326 else false
324- if (if (if (if ((drawState == STATEINIT))
325- then sigValid
326- else false)
327- then feeValid
328- else false)
329- then dataSizeValid
330- else false)
331- then keysValid
332- else false
327+ let dtxSizeValid = (allowedDtxSize >= size(dtx.bodyBytes))
328+ if ((drawState != STATEINIT))
329+ then throw(((("Data transaction is allowed for " + STATEINIT) + " status only, current status is ") + drawState))
330+ else if (!(sigValid))
331+ then throw("Invalid data transaction signature")
332+ else if (!(feeValid))
333+ then throw(("Invalid DataTransaction fee. Fee must be exact " + toString(minDataPmt)))
334+ else if (!(dataSizeValid))
335+ then throw(("Invalid data entries count. Data entries count must be exact " + toString(allowedDataEntriesCount)))
336+ else if (!(keysValid))
337+ then throw("Invalid data keys format")
338+ else if (!(dtxSizeValid))
339+ then throw((("Invalid DataTransaction size. Max allowed size is " + toString(allowedDtxSize)) + " bytes"))
340+ else true
333341 case sstx: SetScriptTransaction =>
334342 true
335343 case ttx: TransferTransaction =>
336344 true
337345 case _ =>
338346 false
339347 }
340348

github/deemru/w8io/169f3d6 
49.17 ms