Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ipld/dag-ucan

Package Overview
Dependencies
Maintainers
8
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ipld/dag-ucan - npm Package Compare versions

Comparing version 1.2.3-beta to 1.2.4-beta

6

dist/src/crypto.d.ts
export interface AsyncVerifier<A extends number> {
readonly algorithm: A;
verify<S extends Signer<A>, T>(payload: ByteView<T>, signature: Signature<T, S>): PromiseLike<T>;
verify<S extends Signer<A>, T>(payload: ByteView<T>, signature: Signature<T, S>): PromiseLike<boolean>;
}
export interface SyncVerifier<A extends number> {
readonly algorithm: A;
verify<S extends Signer<A>, T>(payload: ByteView<T>, signature: Signature<T, S>): T;
verify<S extends Signer<A>, T>(payload: ByteView<T>, signature: Signature<T, S>): boolean;
}
export interface Verifier<A extends number = number> {
readonly algorithm: A;
verify<S extends Signer<A>, T>(payload: ByteView<T>, signature: Signature<T, S>): T;
verify<S extends Signer<A>, T>(payload: ByteView<T>, signature: Signature<T, S>): Await<boolean>;
}

@@ -13,0 +13,0 @@ export interface SyncSigner<A extends number = number> {

{
"name": "@ipld/dag-ucan",
"description": "UCAN codec for IPLD",
"version": "1.2.3-beta",
"version": "1.2.4-beta",
"keywords": [

@@ -6,0 +6,0 @@ "UCAN",

@@ -6,3 +6,3 @@ export interface AsyncVerifier<A extends number> {

signature: Signature<T, S>
): PromiseLike<T>
): PromiseLike<boolean>
}

@@ -15,3 +15,3 @@

signature: Signature<T, S>
): T
): boolean
}

@@ -24,3 +24,3 @@

signature: Signature<T, S>
): T
): Await<boolean>
}

@@ -27,0 +27,0 @@

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