cotiv2-mcp
Version:
> A plug-and-play MCP tool server to **send COTI**, **transfer BEP-20 tokens**, **deploy tokens**, and **interact with smart contracts** on the **COTI v2 Network (COTI)** — built for **Claude Desktop**, **AI agents**, and **developers.**
13 lines (12 loc) • 539 B
JavaScript
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);
});
});