Comparing version 2.1.9 to 2.1.10
@@ -0,1 +1,5 @@ | ||
## 2.1.10 (2020-02-10) | ||
- Add a simple verifier system that works either for PGP or keybase keys and sigs | ||
## 2.1.9 (2020-01-27) | ||
@@ -2,0 +6,0 @@ |
declare module "kbpgp" { | ||
namespace util { | ||
function json_stringify_sorted(o: any): string; | ||
} | ||
interface KeyManager { | ||
@@ -6,2 +10,19 @@ get_ekid: () => Buffer; | ||
namespace verify { | ||
type Kid = string; | ||
interface GenericKey { | ||
kid: () => Kid; | ||
isPGP: () => boolean; | ||
verify: (s: string, opts?: Opts) => Promise<[Buffer, Buffer]>; | ||
} | ||
type Opts = { | ||
time_travel?: boolean; | ||
now?: number; | ||
no_check_keys?: boolean; | ||
}; | ||
function importKey(s: string, opts?: Opts): Promise<GenericKey>; | ||
} | ||
namespace kb { | ||
@@ -16,3 +37,3 @@ function unbox( | ||
function verify( | ||
arg: { armored: string; kid : string } | { binary: Buffer; kid: string }, | ||
arg: { armored: string; kid: string } | { binary: Buffer; kid: string }, | ||
cb: (err: Error | null, paload: Buffer | null) => void | ||
@@ -19,0 +40,0 @@ ): void; |
@@ -49,2 +49,4 @@ // Generated by IcedCoffeeScript 108.0.11 | ||
exports.verify = require('./verify'); | ||
}).call(this); |
@@ -10,3 +10,3 @@ { | ||
"author": "Maxwell Krohn", | ||
"version": "2.1.9", | ||
"version": "2.1.10", | ||
"license": "BSD-3-Clause", | ||
@@ -13,0 +13,0 @@ "types": "./index.d.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1266782
159
18701