Ed25519.hram: def of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/src/crypto/ed25519/ed25519.bend as Ed25519 Lines 20-26 of bend-collections-laws-crypto@1.0.0.0/src/crypto/ed25519/ed25519.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/ed25519/ed25519.bend&start_line=20&end_line=26 import Base import bend-collections-laws-crypto@1.0.0.0/src/crypto/hash.bend as H import bend-collections-laws-crypto@1.0.0.0/src/crypto/ed25519/scalar.bend as SC # k = SHA-512(R || A || M) mod L def hram(rb: List<&2, U32>, +a: List<&2, U32>, +msg: List<&2, U32>) -> List<&2, U32>: match rb: case Nil{}: SC.reduce(H.sha512(cat(Nil{}, cat(a, msg)))) case Con{x, xt}: SC.reduce(H.sha512(cat(Con{x, xt}, cat(a, msg)))) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/ed25519/ed25519.bend&name=cat https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/ed25519/scalar.bend&name=reduce https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/hash.bend&name=sha512