@nori-zk/mina-token-bridge
Version:
A Mina zk-program contract allowing users to mint tokens on Nori Bridge.
34 lines (33 loc) • 1.47 kB
TypeScript
/**
* Specification of the methods exposed by DepositAttestationWorker
* for parent proxying.
*/
export declare const workerSpec: {
/** Compile prerequisites for deposit attestations */
readonly compileAttestation: () => Promise<void>;
/**
* Compute a deposit attestation given the deposit details.
* @param depositBlockNumber - The block number of the deposit
* @param ethAddressLowerHex - Ethereum address (lowercase hex)
* @param attestationBEHex - Attestation in big-endian hex format
* @returns Object containing raw deposit slot and proofs in JSON
*/
readonly computeAttestation: (depositBlockNumber: number, ethAddressLowerHex: string, attestationBEHex: string) => Promise<{
despositSlotRaw: number;
depositAttestationProofJson: {};
ethVerifierProofJson: {};
}>;
/** Compile the EthDepositProgram and prerequisites */
readonly compile: () => Promise<void>;
/**
* Compute the full deposit proof.
* @param presentationJson - JSON string of the presentation
* @param depositBlockNumber - The block number of the deposit
* @param ethAddressLowerHex - Ethereum address (lowercase hex)
* @returns Object containing raw deposit slot and E2E proof JSON
*/
readonly compute: (presentationJson: string, depositBlockNumber: number, ethAddressLowerHex: string) => Promise<{
despositSlotRaw: number;
ethDepositProofJson: {};
}>;
};