Add getSecretForAddress

This commit is contained in:
Sosthene 2024-11-25 21:24:04 +01:00
parent 7ec1b4e32e
commit 038a2e3498

View File

@ -103,6 +103,11 @@ export default class Services {
return apiReturn;
}
public async getSecretForAddress(address: string): Promise<string | null> {
const db = await Database.getInstance();
return await db.getObject('shared_secrets', address);
}
public async connectMember(members: Member[]): Promise<void> {
if (members.length === 0) {
throw new Error('Trying to connect to empty members list');