@ucanto/principal
Advanced tools
Comparing version 8.0.0 to 8.1.0
export function from<ID extends `did:${string}:${string}`>({ id }: { | ||
id: ID; | ||
}): UCAN.Signer<ID, 53248>; | ||
import * as UCAN from "@ipld/dag-ucan/."; | ||
import * as UCAN from '@ipld/dag-ucan'; | ||
//# sourceMappingURL=absentee.d.ts.map |
@@ -18,3 +18,3 @@ export * from "./type.js"; | ||
export function parse<Prefix extends string>(principal: string, decoder?: API.MultibaseDecoder<Prefix> | undefined): API.EdSigner; | ||
import * as API from "./type.js"; | ||
import * as API from './type.js'; | ||
//# sourceMappingURL=signer.d.ts.map |
@@ -13,5 +13,5 @@ /** @type {API.EdVerifier['code']} */ | ||
export type EdVerifier = API.EdVerifier; | ||
import * as API from "./type.js"; | ||
import * as DID from "@ipld/dag-ucan/did"; | ||
import * as Verifier from "../verifier.js"; | ||
import * as API from './type.js'; | ||
import * as DID from '@ipld/dag-ucan/did'; | ||
import * as Verifier from '../verifier.js'; | ||
//# sourceMappingURL=verifier.d.ts.map |
@@ -0,1 +1,2 @@ | ||
export * from "./multiformat.js"; | ||
export const Verifier: ed25519.ComposedDIDParser; | ||
@@ -5,6 +6,6 @@ export const Signer: ed25519.CompositeImporter<[{ | ||
}, typeof RSA]>; | ||
import * as ed25519 from "./ed25519.js"; | ||
import * as RSA from "./rsa.js"; | ||
import * as Absentee from "./absentee.js"; | ||
import * as ed25519 from './ed25519.js'; | ||
import * as RSA from './rsa.js'; | ||
import * as Absentee from './absentee.js'; | ||
export { ed25519, RSA, Absentee }; | ||
//# sourceMappingURL=lib.d.ts.map |
@@ -6,3 +6,3 @@ export function tagWith(code: number, bytes: Uint8Array): Uint8Array; | ||
export const decode: typeof varint.decode; | ||
import { varint } from "multiformats/dist/types/src"; | ||
import { varint } from 'multiformats'; | ||
//# sourceMappingURL=multiformat.d.ts.map |
@@ -19,3 +19,3 @@ export * from "./rsa/type.js"; | ||
export type EncodedSigner = API.ByteView<API.Signer<API.DID<'key'>, typeof signatureCode> & CryptoKey>; | ||
import * as API from "./rsa/type.js"; | ||
import * as API from './rsa/type.js'; | ||
/** | ||
@@ -66,3 +66,3 @@ * @typedef {API.ByteView<API.Signer<API.DID<'key'>, typeof signatureCode> & CryptoKey>} EncodedSigner | ||
} | ||
import * as DID from "@ipld/dag-ucan/did"; | ||
import * as DID from '@ipld/dag-ucan/did'; | ||
/** | ||
@@ -129,3 +129,3 @@ * @implements {API.RSAVerifier} | ||
} | ||
import * as Signer from "./signer.js"; | ||
import * as Signer from './signer.js'; | ||
//# sourceMappingURL=rsa.d.ts.map |
@@ -14,3 +14,3 @@ export function decode(info: API.ByteView<PrivateKeyInfo>): API.ByteView<RSAPrivateKey>; | ||
}; | ||
import * as API from "@ucanto/interface"; | ||
import * as API from '@ucanto/interface'; | ||
//# sourceMappingURL=pkcs8.d.ts.map |
@@ -20,5 +20,5 @@ export const code: 4869; | ||
}; | ||
import * as API from "@ucanto/interface"; | ||
import * as PKCS8 from "./pkcs8.js"; | ||
import * as SPKI from "./spki.js"; | ||
import * as API from '@ucanto/interface'; | ||
import * as PKCS8 from './pkcs8.js'; | ||
import * as SPKI from './spki.js'; | ||
//# sourceMappingURL=private-key.d.ts.map |
@@ -14,4 +14,4 @@ export function decode(key: API.ByteView<RSAPublicKey>, byteOffset?: number): RSAPublicKey; | ||
}; | ||
import * as API from "@ucanto/interface"; | ||
import * as SPKI from "./spki.js"; | ||
import * as API from '@ucanto/interface'; | ||
import * as SPKI from './spki.js'; | ||
//# sourceMappingURL=public-key.d.ts.map |
@@ -57,3 +57,3 @@ /** | ||
export type AlgorithmIdentifier = import('./pkcs8.js').AlgorithmIdentifier; | ||
import * as API from "@ucanto/interface"; | ||
import * as API from '@ucanto/interface'; | ||
//# sourceMappingURL=spki.d.ts.map |
export function or<L extends API.SignerImporter<`did:${string}:${string}`, API.SigAlg>, R extends API.SignerImporter<`did:${string}:${string}`, API.SigAlg>>(left: L, right: R): API.CompositeImporter<[L, R]>; | ||
export function withDID<Code extends number, ID extends `did:${string}:${string}`>({ signer, verifier }: API.Signer<`did:key:${string}`, Code>, id: ID): API.Signer<ID, Code>; | ||
import * as API from "@ucanto/interface"; | ||
import * as API from '@ucanto/interface'; | ||
//# sourceMappingURL=signer.d.ts.map |
export function or(left: API.PrincipalParser, right: API.PrincipalParser): API.ComposedDIDParser; | ||
export function withDID<ID extends `did:${string}:${string}`, SigAlg extends API.MulticodecCode<number, string>>(key: API.VerifierKey<SigAlg>, id: ID): API.Verifier<ID, SigAlg>; | ||
import * as API from "@ucanto/interface"; | ||
export function withDID<ID extends `did:${string}:${string}`, SigAlg extends API.MulticodecCode>(key: API.VerifierKey<SigAlg>, id: ID): API.Verifier<ID, SigAlg>; | ||
import * as API from '@ucanto/interface'; | ||
//# sourceMappingURL=verifier.d.ts.map |
{ | ||
"name": "@ucanto/principal", | ||
"description": "ucanto principal", | ||
"version": "8.0.0", | ||
"version": "8.1.0", | ||
"keywords": [ | ||
@@ -22,7 +22,9 @@ "UCAN", | ||
"dependencies": { | ||
"@ipld/dag-ucan": "^3.3.2", | ||
"@ipld/dag-ucan": "^3.4.0", | ||
"@noble/ed25519": "^1.7.3", | ||
"@ucanto/interface": "^8", | ||
"multiformats": "^11.0.0", | ||
"one-webcrypto": "^1.0.3" | ||
"@noble/curves": "^1.2.0", | ||
"@noble/hashes": "^1.3.2", | ||
"multiformats": "^11.0.2", | ||
"one-webcrypto": "^1.0.3", | ||
"@ucanto/interface": "^8.1.0" | ||
}, | ||
@@ -37,3 +39,3 @@ "devDependencies": { | ||
"playwright-test": "^8.2.0", | ||
"typescript": "^4.9.5" | ||
"typescript": "^5.0.4" | ||
}, | ||
@@ -95,3 +97,3 @@ "type": "module", | ||
"test": "npm run test:node", | ||
"coverage": "c8 --reporter=html mocha test/**/*.spec.js && npm_config_yes=true npx st -d coverage -p 8080", | ||
"coverage": "c8 report -r html && open coverage/index.html", | ||
"check": "tsc --build", | ||
@@ -98,0 +100,0 @@ "build": "tsc --build" |
import * as ed25519 from './ed25519.js' | ||
import * as RSA from './rsa.js' | ||
import * as Absentee from './absentee.js' | ||
export * from './multiformat.js' | ||
export const Verifier = ed25519.Verifier.or(RSA.Verifier) | ||
@@ -6,0 +6,0 @@ export const Signer = ed25519.or(RSA) |
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
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
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
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
96372
64
2772
7
+ Added@noble/curves@^1.2.0
+ Added@noble/hashes@^1.3.2
+ Added@noble/curves@1.6.0(transitive)
+ Added@noble/hashes@1.5.0(transitive)
Updated@ipld/dag-ucan@^3.4.0
Updated@ucanto/interface@^8.1.0
Updatedmultiformats@^11.0.2