UNPKG

@ldclabs/cose-ts

Version:

Implemented Keys, Algorithms (RFC9053), COSE (RFC9052) and CWT (RFC8392) in TypeScript.

8 lines (7 loc) 539 B
export { bytesToHex, hexToBytes, utf8ToBytes, randomBytes, toBytes, concatBytes } from '@noble/hashes/utils'; export declare function decodeCBOR<T>(data: Uint8Array): T; export declare function encodeCBOR(data: unknown): Uint8Array; export declare function bytesToBase64Url(bytes: Uint8Array): string; export declare function base64ToBytes(str: string): Uint8Array; export declare function compareBytes(a: Uint8Array, b: Uint8Array): number; export declare function assertEqual(actual: unknown, expected: unknown, message?: string): void;