UNPKG

@sphereon/ssi-sdk-ext.did-resolver-key

Version:

Sphereon did:key resolver with BBS+/BLS and EBSI support.

23 lines 934 B
import { base64urlPoint } from 'nist-weierstrauss'; import { KeyToDidDocArgs } from '../types'; /** * Constructs the document based on the method key */ export declare function keyToDidDoc({ pubKeyBytes, fingerprint }: KeyToDidDocArgs): any; /** * * @param pubKeyBytes - public key as compressed with 0x02 prefix if even and 0x03 prefix if odd. * @returns point x,y with coordinates as multibase encoded base64urls * * See the the did:key specification: https://w3c-ccg.github.io/did-method-key/#p-521. * For compression see: https://tools.ietf.org/id/draft-jivsov-ecc-compact-05.html#rfc.section.3 * @throws TypeError: input cannot be null or undefined. * @throws Error: Unexpected pubKeyBytes * @internal */ export declare function pubKeyBytesToXY(pubKeyBytes: Uint8Array): base64urlPoint; declare const _default: { keyToDidDoc: typeof keyToDidDoc; }; export default _default; //# sourceMappingURL=secp521r1.d.ts.map