Lock.known: def of ezx@1.13.0.0 Import: import ezx@1.13.0.0/src/lock/lock.bend as Lock Lines 390-399 of ezx@1.13.0.0/src/lock/lock.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.13.0.0/src/lock/lock.bend&start_line=390&end_line=399 import Base # whether the ledger names a package. One it does not name still resolves from # the hub, since the hub serves bytes by the hash they digest to, but when the # hub does not have it there is nothing else to ask: nothing a clone has says # where it came from, so the lock says that and stops. def known(ds: List<&2, Origin>, +wanted: String) -> Bool: match ds: case []: False{} case x <> t: any.step(String.eq(origin.hash(x), wanted), _u => known(t, wanted)) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=ezx@1.13.0.0/src/lock/lock.bend&name=Origin https://jend.leeeet.dev/definition.txt?path=ezx@1.13.0.0/src/lock/lock.bend&name=any.step https://jend.leeeet.dev/definition.txt?path=ezx@1.13.0.0/src/lock/lock.bend&name=origin.hash