package octez-internal-libs
A package that contains some libraries used by the Octez suite
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65
doc/octez-internal-libs.irmin/Irmin/Node/Portable/index.html
Module Node.Portable
Source
Portable form of a node implementation that can be constructed from a concrete representation and used in computing hashes. Conceptually, a Node.Portable.t
is a Node.t
in which all internal keys have been replaced with the hashes of the values they point to.
Computations over Portable.t
values must commute with those over t
s, as in the following diagram:
┌────────┐ ┌─────────┐ of_node ┌────────────────┐
│ Key │ │ Node │ ─────────> │ Node.Portable │
└────────┘ └─────────┘ └────────────────┘
│ │ add/remove │ │
to_hash └───────────> (+) add/remove │
│ ┌──────────────┼──────────────────────> (+)
v │ v v
┌────────┐ ┌─────────┐ ┌────────────────┐
│ Hash │ │ Node' │ ─────────> │ Node.Portable' │
└────────┘ └─────────┘ of_node └────────────────┘
A node implementation with hashes for keys is trivially portable:
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>