Icard/angular-clarity-master(work.../node_modules/@tufjs/models/dist/signature.d.ts

21 lines
573 B
TypeScript
Raw Normal View History

2024-07-16 14:55:36 +00:00
import { JSONObject } from './utils';
export interface SignatureOptions {
keyID: string;
sig: string;
}
/**
* A container class containing information about a signature.
*
* Contains a signature and the keyid uniquely identifying the key used
* to generate the signature.
*
* Provide a `fromJSON` method to create a Signature from a JSON object.
*/
export declare class Signature {
readonly keyID: string;
readonly sig: string;
constructor(options: SignatureOptions);
toJSON(): JSONObject;
static fromJSON(data: JSONObject): Signature;
}