New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

kbpgp

Package Overview
Dependencies
Maintainers
3
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kbpgp - npm Package Compare versions

Comparing version 2.1.9 to 2.1.10

lib/verify.js

4

CHANGELOG.md

@@ -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);

2

package.json

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc