Skip to main content

Try it Live

Run Uint examples in the interactive playground

Uint.bitwiseXor(a: BrandedUint256, b: BrandedUint256): BrandedUint256

Bitwise XOR (exclusive OR) operation. Parameters:
  • a: BrandedUint256 - First value
  • b: BrandedUint256 - Second value
Returns: BrandedUint256 - Bitwise XOR result Example:
import { Uint } from 'tevm'

const a = Uint(0b1100n)
const b = Uint(0b1010n)
Uint.bitwiseXor(a, b)  // 0b0110 (6)
Defined in: primitives/Uint/bitwiseXor.ts

See Also