excelsia / vee

VEE Reference Full Node
MIT No Attribution
29 stars 10 forks source link

add utf8 validation for dbput transaction, following https://tech.zil… #92

Closed ning2056 closed 6 years ago

ning2056 commented 6 years ago

add based on https://tech.zilverline.com/2011/04/07/serializing-strings-using-scalacheck

also move the logic to build dbEntry to dbPutTransaction

still not very clear if those validation are enough. if all agreed, I will add the validation to other transactions if needed.

not very sure if the multi-threading is needed.