UNPKG

uniderp-mcp

Version:

> A plug-and-play MCP tool server to **send ETH**, **transfer ERC-20 tokens**, **deploy tokens**, and **interact with smart contracts** on the **UNICHAIN** — built for **Claude Desktop**, **AI agents**, and **developers.**

13 lines (12 loc) 539 B
import { encryptPrivateKey, decryptPrivateKey } from "../PrivateAES.js"; describe.only("privateAES", () => { test("test", async () => { const privateKey = '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef'; const password = '12345678'; const encrypted = await encryptPrivateKey(privateKey, password); console.log(encrypted); const decrypted = await decryptPrivateKey(encrypted, password); console.log(decrypted); expect(decrypted).toBe(privateKey); }); });