@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
13 lines • 600 B
text/typescript
//#region src/utils/did.d.ts
declare function indyDidFromPublicKeyBase58(publicKeyBase58: string): string;
/**
* Checks whether `potentialDid` is a valid DID. You can optionally provide a `method` to
* check whether the did is for that specific method.
*
* Note: the check in this method is very simple and just check whether the did starts with
* `did:` or `did:<method>:`. It does not do an advanced regex check on the did.
*/
declare function isDid(potentialDid: string, method?: string): boolean;
//#endregion
export { indyDidFromPublicKeyBase58, isDid };
//# sourceMappingURL=did.d.mts.map