Initial commit with translated description

This commit is contained in:
2026-03-29 13:13:12 +08:00
commit 7dcf9ca28b
23 changed files with 4659 additions and 0 deletions

24
scripts/getIdentities.js Normal file
View File

@@ -0,0 +1,24 @@
const { getInitializedRuntime } = require("./shared/bootstrap");
const { formatError, outputSuccess } = require("./shared/utils");
async function main() {
try {
const { didsStorage } = await getInitializedRuntime();
const identities = await didsStorage.list();
if (identities.length === 0) {
console.error(
"No identities found. Create one with createNewEthereumIdentity.js",
);
process.exit(1);
}
outputSuccess(identities);
} catch (error) {
console.error(formatError(error));
process.exit(1);
}
}
main();