Skip to content

KimchiProofConverter

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / KimchiProofConverter

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

Converter for Kimchi proofs (Mina Protocol)

Kimchi is the proving system used by Mina Protocol, using Pasta curves (Pallas and Vesta) for efficient recursive composition.

const converter = new KimchiProofConverter()
// Convert to SIP format
const result = converter.toSIP(kimchiProof)
if (result.success) {
console.log('SIP Proof:', result.result)
}

new KimchiProofConverter(): KimchiProofConverter

KimchiProofConverter

readonly system: "kimchi"

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

The proof system this converter handles

ProofConverter.system


readonly version: "1.0.0" = "1.0.0"

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

Converter version for tracking

ProofConverter.version

toSIP(nativeProof, options?): ConversionResult<SingleProof>

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

Convert Kimchi native proof to SIP unified format

KimchiNativeProof

ConversionOptions

ConversionResult<SingleProof>

ProofConverter.toSIP


fromSIP(sipProof, options?): ConversionResult<KimchiNativeProof>

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

Convert SIP unified format to Kimchi native proof

SingleProof

ConversionOptions

ConversionResult<KimchiNativeProof>

ProofConverter.fromSIP


validateNative(nativeProof): ConverterValidationResult

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

Validate a Kimchi native proof structure

KimchiNativeProof

ConverterValidationResult

ProofConverter.validateNative


canConvertFromSIP(sipProof): boolean

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

Check if a SIP proof can be converted to Kimchi format

SingleProof

boolean

ProofConverter.canConvertFromSIP


getSupportedVersions(): string[]

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

Get supported Kimchi versions

string[]

ProofConverter.getSupportedVersions