UNPKG

@nori-zk/mina-token-bridge

Version:

A Mina zk-program contract allowing users to mint tokens on Nori Bridge.

34 lines 1.39 kB
/** * Specification of the methods exposed by DepositAttestationWorker * for parent proxying. */ export const workerSpec = { /** Compile prerequisites for deposit attestations */ compileAttestation: async () => { }, /** * 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 */ computeAttestation: async (depositBlockNumber, ethAddressLowerHex, attestationBEHex) => ({ despositSlotRaw: 0, depositAttestationProofJson: {}, ethVerifierProofJson: {}, }), /** Compile the EthDepositProgram and prerequisites */ compile: async () => { }, /** * 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 */ compute: async (presentationJson, depositBlockNumber, ethAddressLowerHex) => ({ despositSlotRaw: 0, ethDepositProofJson: {}, }), }; //# sourceMappingURL=spec.js.map