def xor_bytes

bend-collections@1.0.0.0 · spec/crypto/secp256k1/schnorr.bend:41

import bend-collections@1.0.0.0/spec/crypto/secp256k1/schnorr.bend as Schnorr
import Base

41def xor_bytes(xs: List<&2, U32>, ys: List<&2, U32>) -> List<&2, U32>:
42  match xs ys:
43    case x <> xt y <> yt: U32.xor(x, y) <> xor_bytes(xt, yt)
44    case _ _: Nil{}

Uses (3)

Used by (1)