diff --git a/apps/identity.json b/apps/identity.json deleted file mode 100644 index a4c28e41..00000000 --- a/apps/identity.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "type": "tildefriends-app", - "emoji": "🪪", - "previous": "&kgukkyDk1RxgfzgMH6H/0QeDPIuwPZypLuAFax21ljk=.sha256" -} diff --git a/apps/identity/app.js b/apps/identity/app.js deleted file mode 100644 index a56e5572..00000000 --- a/apps/identity/app.js +++ /dev/null @@ -1,93 +0,0 @@ -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( - `
- - -