[go: up one dir, main page]

Further improve Tezos_crypto namespacing

Changes as visible by the devs:

  • Tezos_crypto is not opened via manifest/dune; some select modules are exported via TzPervasives
  • S is renamed into Intfs. Not exported via TzPervasives: must be used as Tezos_crypto.Intfs.
  • All hashed data-structures (Operation_has, Block_hash, etc.) are bundled inside the Tezos_crypto.Hashed submodule. They are all exported via TzPervasives: in most places they can be used unqualified (Operation_hash)
  • All signature schemes (SecpXXXX, EdXXXXX, Bls, etc.) bundled under the Tezos_crypto.Signature submodule. The Signature module is exported by the TzPervasives module: in most places they can be used with the Signature. prefix

This is intended to make the code more readable:

  • The most common submodules (hash-based structures) are exported via TzPervasives to be part of the generic octez lingo
  • Signatures are grouped together in a module exported by TzPervasives to 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

Merge request reports

Loading