UNPKG

@baqhub/sdk

Version:

The official JavaScript SDK for the BAQ federated app platform.

19 lines (18 loc) 797 B
import { HttpSignatureHeader } from "./httpSignatureHeader.js"; import { HttpSignatureInput } from "./httpSignatureInput.js"; export interface HttpSignature { id: string; timestamp: number; nonce: string; headers: ReadonlyArray<`${HttpSignatureHeader}`>; signature: Uint8Array; } declare function signatureToHeader(signature: HttpSignature): string; declare function signatureForRequest(appRecordId: string, privateKey: Uint8Array, input: HttpSignatureInput): HttpSignature; declare function signatureForResponse(appRecordId: string, privateKey: Uint8Array, input: HttpSignatureInput): HttpSignature; export declare const HttpSignature: { request: typeof signatureForRequest; response: typeof signatureForResponse; toHeader: typeof signatureToHeader; }; export {};