@sphereon/ssi-sdk-ext.did-resolver-key
Version:
Sphereon did:key resolver with BBS+/BLS and EBSI support.
22 lines (18 loc) • 872 B
text/typescript
import { DIDResolutionOptions, ResolverRegistry } from 'did-resolver';
declare const DID_LD_JSON = "application/did+ld+json";
declare const DID_JSON = "application/did+json";
type PublicKeyFormat = 'JsonWebKey2020' | 'Ed25519VerificationKey2018' | 'X25519KeyAgreementKey2019' | 'Ed25519VerificationKey2020' | 'X25519KeyAgreementKey2020' | 'Multikey';
interface KeyToDidDocArgs {
pubKeyBytes: Uint8Array;
fingerprint: string;
contentType?: string;
options?: DIDKeyResolutionOptions;
}
interface DIDKeyResolutionOptions extends DIDResolutionOptions {
publicKeyFormat?: PublicKeyFormat;
}
declare const getResolver: () => ResolverRegistry;
declare const _default: {
getResolver: () => ResolverRegistry;
};
export { type DIDKeyResolutionOptions, DID_JSON, DID_LD_JSON, type KeyToDidDocArgs, type PublicKeyFormat, _default as default, getResolver };