Further improve Tezos_crypto namespacing
Changes as visible by the devs:
-
Tezos_cryptois not opened via manifest/dune; some select modules are exported viaTzPervasives -
Sis renamed intoIntfs. Not exported viaTzPervasives: must be used asTezos_crypto.Intfs. - All hashed data-structures (
Operation_has,Block_hash, etc.) are bundled inside theTezos_crypto.Hashedsubmodule. They are all exported viaTzPervasives: in most places they can be used unqualified (Operation_hash) - All signature schemes (
SecpXXXX,EdXXXXX,Bls, etc.) bundled under theTezos_crypto.Signaturesubmodule. TheSignaturemodule is exported by theTzPervasivesmodule: in most places they can be used with theSignature.prefix
This is intended to make the code more readable:
- The most common submodules (hash-based structures) are exported via
TzPervasivesto be part of the generic octez lingo - Signatures are grouped together in a module exported by
TzPervasivesto be part of the generic octez lingo - Other modules need to be accessed explicitly via
Tezos_crypto.so that their use is easier to track.
Edited by Raphaël Proust