@ucanto/principal
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -0,1 +1,2 @@ | ||
export * from "./type.js"; | ||
export const code: 4864; | ||
@@ -2,0 +3,0 @@ export const name: "Ed25519"; |
export const Verifier: { | ||
create: (options: RSA.PrincipalParser[]) => any; | ||
parse: (did: `did:${string}:${string}`) => import("@ucanto/interface").Verifier<`did:${string}:${string}`, number>; | ||
create: (options: ed25519.PrincipalParser[]) => any; | ||
parse: (did: `did:${string}:${string}`) => ed25519.Signer.Verifier<`did:${string}:${string}`, number>; | ||
}; | ||
export const Signer: { | ||
create: <Importers extends [RSA.SignerImporter<`did:${string}:${string}`, number>, ...RSA.SignerImporter<`did:${string}:${string}`, number>[]]>(importers: Importers) => { | ||
create: <Importers extends [ed25519.SignerImporter<`did:${string}:${string}`, number>, ...ed25519.SignerImporter<`did:${string}:${string}`, number>[]]>(importers: Importers) => { | ||
create: any; | ||
from: RSA.Intersection<Importers[number]["from"]>; | ||
from: ed25519.Intersection<Importers[number]["from"]>; | ||
}; | ||
from: (({ id, keys }: RSA.SignerArchive<`did:key:${string}`, 53485>) => import("./ed25519/type.js").EdSigner) & (({ id, keys }: RSA.SignerArchive<`did:key:${string}`, 13636101>) => RSA.RSASigner); | ||
from: (({ id, keys }: ed25519.SignerArchive<`did:key:${string}`, 53485>) => ed25519.EdSigner) & (({ id, keys }: ed25519.SignerArchive<`did:key:${string}`, 13636101>) => RSA.RSASigner); | ||
}; | ||
import * as ed25519 from "./ed25519.js"; | ||
import * as RSA from "./rsa.js"; | ||
//# sourceMappingURL=key.d.ts.map |
{ | ||
"name": "@ucanto/principal", | ||
"description": "ed25519 principal", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "UCAN", |
@@ -8,2 +8,3 @@ import * as ED25519 from '@noble/ed25519' | ||
import { withDID } from '../signer.js' | ||
export * from './type.js' | ||
@@ -10,0 +11,0 @@ export const code = 0x1300 |
Sorry, the diff of this file is not supported yet
75333
2159