Expose provider health public identity
This commit is contained in:
parent
9065dfa43b
commit
36488a5e58
2 changed files with 13 additions and 0 deletions
12
src/export-provider-health-public-key.ts
Normal file
12
src/export-provider-health-public-key.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import {
|
||||
openOrEnrollProviderHealthIdentity,
|
||||
providerHealthPublicIdentity,
|
||||
} from "./provider-health-identity.js";
|
||||
|
||||
const identityPath = process.argv[2];
|
||||
if (!identityPath) {
|
||||
throw new Error("Usage: export-provider-health-public-key <provider-health-identity.cc>");
|
||||
}
|
||||
|
||||
const identity = await openOrEnrollProviderHealthIdentity(identityPath);
|
||||
process.stdout.write(`${providerHealthPublicIdentity(identity).publicKeyHex}\n`);
|
||||
Loading…
Reference in a new issue