UNPKG

@sphereon/did-resolver-key

Version:
22 lines 889 B
import { base64urlPoint } from 'nist-weierstrauss'; /** * Constructs the document based on the method key */ export declare function keyToDidDoc(pubKeyBytes: Uint8Array, fingerprint: string): 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