Schnorr.tagged: def of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/spec/crypto/secp256k1/schnorr.bend as Schnorr Lines 27-29 of bend-collections-laws-crypto@1.0.0.0/spec/crypto/secp256k1/schnorr.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/spec/crypto/secp256k1/schnorr.bend&start_line=27&end_line=29 import Base import bend-collections-laws-crypto@1.0.0.0/spec/crypto/sha.bend as FIPS # hash_name(x) = SHA256(SHA256(name) || SHA256(name) || x), name in ASCII def tagged(tag: List<&2, U32>, x: List<&2, U32>) -> List<&2, U32>: tagged_h(FIPS.sha256_bytes(tag), x) 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=U32 https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/spec/crypto/secp256k1/schnorr.bend&name=tagged_h https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/spec/crypto/sha.bend&name=sha256_bytes