Env: add `Bitset`
What
This MR does four things:
- changes the encoding of
Tezos_base.Bitset.tfromData_encoding.ntoData_encoding.z - adds an error to
Bitsetand slightly improves the doc-strings - puts
Tezos_base.Bitsetin the environment, thus providing it to the protocol, and remove the now redundantBitsetmodule from the protocol - move the tests of the
Bitsetmodule from the protocol to thelib_base
Why
There is an unnecessary duplication of the Bitset module.
However, the two modules used different encodings (n in the shell and z in the protocol), so it was needed to unify them. Changing the encoding in the protocol may be problematic, while changing the encoding in the shell should not be. See thread for details.
Edited by Eugen Zalinescu