import * as tfrpc from '/tfrpc.js'; tfrpc.register(async function get_private_key(id) { return bip39Words(await ssb.getPrivateKey(id)); }); tfrpc.register(async function create_id(id) { return await ssb.createIdentity(); }); tfrpc.register(async function add_id(id) { return await ssb.addIdentity(bip39Bytes(id)); }); tfrpc.register(async function delete_id(id) { return await ssb.deleteIdentity(id); }); tfrpc.register(async function reload() { await main(); }); async function main() { let ids = await ssb.getIdentities(); await app.setDocument( `