StorageCertificate.normalized_witness: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/proofs/storage_certificate.bend as StorageCertificate Lines 30-37 of stelliferous@0.0.2.0/proofs/storage_certificate.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/proofs/storage_certificate.bend&start_line=30&end_line=37 import Base import stelliferous@0.0.2.0/proofs/storage_tree_model.bend as Tree import stelliferous@0.0.2.0/proofs/storage_witness.bend as Witness def normalized_witness(-Element: Data,+depth: Nat,-tree: Tree.Tree) -> Witness.Witness(Element,depth,Tree.pack(Element,normalized(Element,depth,tree))): match depth: case 0n: Witness.Leaf{first(Element,tree),{==}} case 1n+ +rest: Witness.Node{Tree.pack(Element,normalized(Element,rest,left(Element,tree))), Tree.pack(Element,normalized(Element,rest,right(Element,tree))),{==}, normalized_witness(Element,rest,left(Element,tree)),normalized_witness(Element,rest,right(Element,tree))} Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_certificate.bend&name=first https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_certificate.bend&name=left https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_certificate.bend&name=normalized https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_certificate.bend&name=right https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_tree_model.bend&name=Tree https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_tree_model.bend&name=pack https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_witness.bend&name=LeafWitness https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_witness.bend&name=NodeWitness https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_witness.bend&name=Witness