@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
19 lines • 714 B
text/typescript
//#region src/modules/dids/methods/peer/didPeer.d.ts
declare function isValidPeerDid(did: string): boolean;
declare enum PeerDidNumAlgo {
InceptionKeyWithoutDoc = 0,
GenesisDoc = 1,
MultipleInceptionKeyWithoutDoc = 2,
ShortFormAndLongForm = 4
}
declare function getNumAlgoFromPeerDid(did: string): PeerDidNumAlgo;
/**
* Given a peer did, returns any alternative forms equivalent to it.
*
* @param did
* @returns array of alternative dids or undefined if not applicable
*/
declare function getAlternativeDidsForPeerDid(did: string): string[] | undefined;
//#endregion
export { PeerDidNumAlgo, getAlternativeDidsForPeerDid, getNumAlgoFromPeerDid, isValidPeerDid };
//# sourceMappingURL=didPeer.d.mts.map