MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / exportKeyForBinary

Function exportKeyForBinary

src/server/cli-commands.ts:241–243  ·  view source on GitHub ↗
(binary: string)

Source from the content-addressed store, hash-verified

239 * the shim (bin/alice).
240 */
241export function exportKeyForBinary(binary: string): string {
242 return binary === 'alice' ? 'data' : binary.replace(/^alice-/, '')
243}
244
245/** The export descriptor for a key, or null. */
246export function getExport(key: string): CliExport | null {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected