// SPDX-License-Identifier: Apache-2.0
export default class Hex {
    static fromUint8Array(uint8ArrayKey) {
        return Array.from(uint8ArrayKey, (byte) => ("0" + byte.toString(16)).slice(-2)).join("");
    }
    static toUint8Array(hex) {
        return Uint8Array.from(Buffer.from(hex, "hex"));
    }
}
