UNPKG

interchain-token-sdk

Version:

SDK for deploying and managing interchain tokens across multiple chains using Axelar network

10 lines (9 loc) 278 B
import { randomBytes, toHex } from "./randomBytes.js"; /** * Generates a random 32-byte salt for token deployment * @returns A hex string representing a 32-byte salt */ export function generateRandomSalt() { const salt = randomBytes(32); return `0x${toHex(salt)}`; }