UNPKG

o1js

Version:

TypeScript framework for zk-SNARKs and zkApps

12 lines (11 loc) 775 B
import { Field } from '../field.js'; export { xor, not, rotate64, rotate32, and, or, rightShift64, leftShift64, leftShift32 }; declare function not(a: Field, length: number, checked?: boolean): Field; declare function xor(a: Field, b: Field, length: number): Field; declare function and(a: Field, b: Field, length: number): Field; declare function or(a: Field, b: Field, length: number): Field; declare function rotate64(field: Field, bits: number, direction?: 'left' | 'right'): Field; declare function rotate32(field: Field, bits: number, direction?: 'left' | 'right'): Field; declare function rightShift64(field: Field, bits: number): Field; declare function leftShift64(field: Field, bits: number): Field; declare function leftShift32(field: Field, bits: number): Field;