mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-21 01:00:24 +08:00
11 lines
306 B
TypeScript
11 lines
306 B
TypeScript
export interface LocalSecretKeyMaterial {
|
|
keyId: string;
|
|
/** Exactly 32 bytes; the consumer owns and must wipe this copy. */
|
|
key: Uint8Array;
|
|
}
|
|
|
|
export interface LocalSecretKeyProvider {
|
|
active(): Promise<LocalSecretKeyMaterial>;
|
|
resolve(keyId: string): Promise<LocalSecretKeyMaterial | null>;
|
|
}
|