summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/@tufjs/models/dist/signature.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/@tufjs/models/dist/signature.d.ts')
-rw-r--r--deps/npm/node_modules/@tufjs/models/dist/signature.d.ts20
1 files changed, 20 insertions, 0 deletions
diff --git a/deps/npm/node_modules/@tufjs/models/dist/signature.d.ts b/deps/npm/node_modules/@tufjs/models/dist/signature.d.ts
new file mode 100644
index 0000000000..dbeabbef87
--- /dev/null
+++ b/deps/npm/node_modules/@tufjs/models/dist/signature.d.ts
@@ -0,0 +1,20 @@
+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;
+}