Skip to content

ProofOrchestrator

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / ProofOrchestrator

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

ProofOrchestrator

High-level orchestrator for proof composition workflows.

const orchestrator = new ProofOrchestrator()
// Register providers
orchestrator.registerProvider(noirProvider)
orchestrator.registerProvider(halo2Provider)
// Plan composition
const plan = await orchestrator.plan({
proofs: [
{ circuitId: 'funding_proof', ... },
{ circuitId: 'validity_proof', ... },
],
strategy: ProofAggregationStrategy.SEQUENTIAL,
})
// Execute composition
const result = await orchestrator.execute({
proofs: [...],
onProgress: (event) => console.log(event),
})

new ProofOrchestrator(config?): ProofOrchestrator

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

Partial<OrchestratorConfig>

ProofOrchestrator

get config(): OrchestratorConfig

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

OrchestratorConfig


get state(): CompositionState

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

CompositionState

updateConfig(config): void

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

Partial<OrchestratorConfig>

void


registerProvider(provider): void

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

ComposableProofProvider

void


unregisterProvider(system): boolean

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

ProofSystem

boolean


getProvider(system): ComposableProofProvider | undefined

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

ProofSystem

ComposableProofProvider | undefined


getAvailableSystems(): ProofSystem[]

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

ProofSystem[]


registerTemplate(template): void

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

CompositionTemplate

void


getTemplate(id): CompositionTemplate | undefined

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

string

CompositionTemplate | undefined


getTemplates(): CompositionTemplate[]

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

CompositionTemplate[]


plan(request): Promise<CompositionPlan>

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

Create a composition plan without executing

CompositionRequest

Promise<CompositionPlan>


execute(request, onProgress?): Promise<OrchestratorResult>

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

Execute a composition request

CompositionRequest

OrchestratorProgressCallback

Promise<OrchestratorResult>


cancel(): void

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

Cancel current composition

void


getAuditLog(): ProofAuditLogEntry[]

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

Get full audit log

ProofAuditLogEntry[]


clearAuditLog(): void

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

Clear audit log

void