UNPKG

@hiero-ledger/cryptography

Version:

Cryptographic utilities and primitives for the Hiero SDK

17 lines (15 loc) 311 B
/** * Byte comparison utility * @param {Uint8Array} a * @param {Uint8Array} b * @returns {boolean} */ export function equalBytes(a, b) { if (a.length !== b.length) { return false; } for (let i = 0; i < a.length; i++) { if (a[i] !== b[i]) return false; } return true; }