21 lines
707 B
TypeScript
21 lines
707 B
TypeScript
|
|
import IonDocumentModel from './models/IonDocumentModel.js';
|
||
|
|
import JwkEs256k from './models/JwkEs256k.js';
|
||
|
|
/**
|
||
|
|
* Class containing DID related operations.
|
||
|
|
*/
|
||
|
|
export default class IonDid {
|
||
|
|
/**
|
||
|
|
* Creates a long-form DID.
|
||
|
|
* @param input.document The initial state to be associate with the ION DID to be created using a `replace` document patch action.
|
||
|
|
*/
|
||
|
|
static createLongFormDid(input: {
|
||
|
|
recoveryKey: JwkEs256k;
|
||
|
|
updateKey: JwkEs256k;
|
||
|
|
document: IonDocumentModel;
|
||
|
|
}): Promise<string>;
|
||
|
|
/**
|
||
|
|
* Computes the DID unique suffix given the encoded suffix data string.
|
||
|
|
*/
|
||
|
|
private static computeDidUniqueSuffix;
|
||
|
|
}
|
||
|
|
//# sourceMappingURL=IonDid.d.ts.map
|