X25519.bitlen: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/crypto/curve25519/x25519.bend as X25519 Lines 98-104 of bend-collections@1.0.0.0/src/crypto/curve25519/x25519.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/crypto/curve25519/x25519.bend&start_line=98&end_line=104 import Base # 8 len(xs), the bit count of a byte string def bitlen(xs: List<&2, U32>) -> Nat: match xs: case Nil{}: 0n case Con{x, xt}: Nat.add(8n, bitlen(xt)) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32