@credo-ts/core
Version:
<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1
20 lines • 1 kB
text/typescript
import { Ed25519PublicJwk } from "../kms/jwk/kty/okp/Ed25519PublicJwk.mjs";
import { X25519PublicJwk } from "../kms/jwk/kty/okp/X25519PublicJwk.mjs";
import { PublicJwk } from "../kms/jwk/PublicJwk.mjs";
import "../kms/index.mjs";
import { VerificationMethod } from "./domain/verificationMethod/VerificationMethod.mjs";
import "./domain/verificationMethod/index.mjs";
import { DidDocument } from "./domain/DidDocument.mjs";
//#region src/modules/dids/findMatchingEd25519Key.d.ts
/**
* Tries to find a matching Ed25519 key to the supplied X25519 key
* @param x25519Key X25519 key
* @param didDocument Did document containing all the keys
* @returns a matching Ed25519 key or `undefined` (if no matching key found)
*/
export declare function findMatchingEd25519Key(x25519Key: PublicJwk<X25519PublicJwk>, didDocument: DidDocument): {
publicJwk: PublicJwk<Ed25519PublicJwk>;
verificationMethod: VerificationMethod;
} | undefined;
//#endregion
//# sourceMappingURL=findMatchingEd25519Key.d.mts.map