Branch
scalus.crypto.trie.Node.Branch
final class Branch(val skipStart: Int, val skipLen: Int, val repPath: ByteString, val children: Vector[Node], val size: Int, computeHash: () => ByteString) extends Node
A branch node with up to 16 children.
Hash is computed lazily via the provided thunk, which calls the variant-specific branchHash. This avoids redundant blake2b_256 calls during bulk trie construction — intermediate branch hashes that get replaced on the next insert are never computed.
Value parameters
- repPath
-
any descendant leaf's fullPath (shared reference, used to read nibble values)
- skipLen
-
number of common prefix nibbles
- skipStart
-
cursor position at creation
Attributes
- Graph
-
- Supertypes
Members list
In this article