@ipld/dag-ucan
Advanced tools
Comparing version 1.2.3-beta to 1.2.4-beta
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64379