Std.Bytes.xorWith
1 declaration
fn
xorWith: &Bytes -> &Bytes -> BytesThis is a callable function.
What it does
Two sequences combined bit by bit, as long as the shorter of them.
The length is the shorter rather than the longer because the operation has
no answer where only one sequence has a byte: padding the shorter with
zeros would quietly copy the longer's tail into the result, which for a
proof carried over a wire is the difference between checking it and not.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
- & borrows a value for this call instead of moving or copying it.
