@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
25 lines (24 loc) • 702 B
JavaScript
//#region src/modules/vc/linked-data-proofs/models/LdKeyPair.ts
var LdKeyPair = class {
constructor(options) {
this.id = options.id;
this.controller = options.controller;
}
static async generate() {
throw new Error("Not implemented");
}
static async from(_verificationMethod) {
throw new Error("Abstract method from() must be implemented in subclass.");
}
export(publicKey = false, privateKey = false) {
if (!publicKey && !privateKey) throw new Error("Export requires specifying either \"publicKey\" or \"privateKey\".");
return {
id: this.id,
type: this.type,
controller: this.controller
};
}
};
//#endregion
export { LdKeyPair };
//# sourceMappingURL=LdKeyPair.mjs.map