UNPKG

@turnkey/api-key-stamper

Version:

API key stamper for @turnkey/http

27 lines 786 B
/// <reference lib="dom" /> export type TApiKeyStamperConfig = { apiPublicKey: string; apiPrivateKey: string; }; /** * Signature function abstracting the differences between NodeJS and web environments for signing with API keys. */ export declare const signWithApiKey: (input: { content: string; publicKey: string; privateKey: string; }) => Promise<string>; /** * Stamper to use with `@turnkey/http`'s `TurnkeyClient` */ export declare class ApiKeyStamper { apiPublicKey: string; apiPrivateKey: string; constructor(config: TApiKeyStamperConfig); stamp(payload: string): Promise<{ stampHeaderName: string; stampHeaderValue: string; }>; } export { pointDecode } from "./tink/elliptic_curves"; //# sourceMappingURL=index.d.ts.map