UNPKG

@simbachain/cose-ts-secp256k1

Version:

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

13 lines (12 loc) 559 B
import { Header } from './header'; import { Key, type Verifier, Signer } from './key'; export declare class Sign1Message { payload: Uint8Array; protected: Header | null; unprotected: Header | null; private static signBytes; static fromBytes(key: Key & Verifier, coseData: Uint8Array, externalData?: Uint8Array): Sign1Message; static withTag(coseData: Uint8Array): Uint8Array; constructor(payload: Uint8Array, protectedHeader?: Header, unprotected?: Header); toBytes(key: Key & Signer, externalData?: Uint8Array): Uint8Array; }