Currently the database is stored as key/value where the type of value is any, which disables basically any type check on values stored in the db. In fact, we have instances of storing objects to the db (like BigNum) that doesn't work well without serializing them first.
We should refactor the type system to make this kind of errors become impossible.
Currently the database is stored as key/value where the type of value is
any
, which disables basically any type check on values stored in the db. In fact, we have instances of storing objects to the db (like BigNum) that doesn't work well without serializing them first.We should refactor the type system to make this kind of errors become impossible.