def xor_bytes

bend-collections@1.0.0.0 · src/crypto/secp256k1/schnorr.bend:38

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

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

Uses (3)

Used by (1)