UNPKG

@nori-zk/mina-token-bridge

Version:

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

8 lines 350 B
import { Bytes } from 'o1js'; import { id } from 'ethers'; export async function signSecretWithEthWallet(secret, ethWallet) { const parseHex = (hex) => Bytes.fromHex(hex.slice(2)).toBytes(); const hashMessage = (msg) => parseHex(id(msg)); return await ethWallet.signMessage(hashMessage(secret)); } //# sourceMappingURL=ethSignature.js.map