MCPcopy Create free account
hub / github.com/Effect-TS/effect / encodeIdentityString

Function encodeIdentityString

packages/effect/src/unstable/eventlog/EventLog.ts:473–477  ·  view source on GitHub ↗
(identity: Identity["Service"])

Source from the content-addressed store, hash-verified

471 * @since 4.0.0
472 */
473export const encodeIdentityString = (identity: Identity["Service"]): string =>
474 Schema.encodeSync(IdentityStringSchema)({
475 publicKey: identity.publicKey,
476 privateKey: Redacted.value(identity.privateKey)
477 })
478
479/**
480 * Generates a new event-log identity using the configured

Callers

nothing calls this directly

Calls 2

encodeSyncMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected