zk-email-light
Version:
ZkEmail only for Header
13 lines (12 loc) • 509 B
TypeScript
import { CircuitInputPaddedMessage, SHA_PADDED_MESSAGE_LENGTH } from "./input";
interface ShaCircuitInputs {
paddedIn: CircuitInputPaddedMessage;
paddedInLength: number;
}
export declare const sha256: (input: string) => string;
export declare const shaCircuitInputs: (emailRaw: string) => ShaCircuitInputs;
export declare const sha256Pad: (message: Uint8Array, maxShaBytes: typeof SHA_PADDED_MESSAGE_LENGTH) => {
paddedInput: Uint8Array<ArrayBufferLike>;
paddedInLength: number;
};
export {};