Skip to content

CacheKeyGenerator

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / CacheKeyGenerator

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:3147

Generates deterministic cache keys from proof input components

new CacheKeyGenerator(): CacheKeyGenerator

CacheKeyGenerator

generate(components): CacheKey

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:3151

Generate a cache key from components

CacheKeyComponents

CacheKey

ICacheKeyGenerator.generate


parse(key): CacheKeyComponents | null

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:3155

Parse a cache key string back to components

string

CacheKeyComponents | null

ICacheKeyGenerator.parse


hashInputs(inputs): string

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:3159

Hash input data deterministically

Record<string, unknown>

string

ICacheKeyGenerator.hashInputs


generateFromInputs(system, circuitId, privateInputs, publicInputs, version?): CacheKey

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:3163

Generate a cache key from raw inputs

ProofSystem

string

Record<string, unknown>

Record<string, unknown>

string

CacheKey


equals(a, b): boolean

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:3167

Check if two cache keys are equal

string | CacheKey

string | CacheKey

boolean


matches(key, pattern): boolean

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:3171

Check if a key matches a pattern (glob-style)

string

string

boolean