UNPKG

@hiero-ledger/cryptography

Version:

Cryptographic utilities and primitives for the Hiero SDK

16 lines (14 loc) 266 B
/** * @param {Uint8Array} data * @returns {string} */ export function decode(data) { return Buffer.from(data).toString("utf8"); } /** * @param {string} text * @returns {Uint8Array} */ export function encode(text) { return Buffer.from(text, "utf8"); }