@zerodev/sdk
Version:
A utility library for working with ERC-4337
5 lines • 338 B
JavaScript
import { encodeAbiParameters, keccak256, stringToHex } from "viem";
export const hashKernelMessageHashWrapper = (messageHash) => {
return keccak256(encodeAbiParameters([{ type: "bytes32" }, { type: "bytes32" }], [keccak256(stringToHex("Kernel(bytes32 hash)")), messageHash]));
};
//# sourceMappingURL=hashKernelSignatureWrapper.js.map