anon-identity
Version:
Decentralized identity framework with DIDs, Verifiable Credentials, and privacy-preserving selective disclosure
42 lines • 1.86 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.StorageProviderBase = void 0;
/**
* Base mixin for storage providers that don't implement phone/address storage
*/
class StorageProviderBase {
// Phone Number Operations (not implemented)
async storePhoneNumber(userDID, phoneNumber) {
throw new Error(`Phone number storage not implemented for ${this.constructor.name}`);
}
async getPhoneNumber(userDID, phoneId) {
throw new Error(`Phone number storage not implemented for ${this.constructor.name}`);
}
async listPhoneNumbers(userDID) {
throw new Error(`Phone number storage not implemented for ${this.constructor.name}`);
}
async updatePhoneNumber(userDID, phoneId, phoneNumber) {
throw new Error(`Phone number storage not implemented for ${this.constructor.name}`);
}
async deletePhoneNumber(userDID, phoneId) {
throw new Error(`Phone number storage not implemented for ${this.constructor.name}`);
}
// Address Operations (not implemented)
async storeAddress(userDID, address) {
throw new Error(`Address storage not implemented for ${this.constructor.name}`);
}
async getAddress(userDID, addressId) {
throw new Error(`Address storage not implemented for ${this.constructor.name}`);
}
async listAddresses(userDID) {
throw new Error(`Address storage not implemented for ${this.constructor.name}`);
}
async updateAddress(userDID, addressId, address) {
throw new Error(`Address storage not implemented for ${this.constructor.name}`);
}
async deleteAddress(userDID, addressId) {
throw new Error(`Address storage not implemented for ${this.constructor.name}`);
}
}
exports.StorageProviderBase = StorageProviderBase;
//# sourceMappingURL=storage-provider-base.js.map