KimchiProofConverter
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / KimchiProofConverter
Class: KimchiProofConverter
Section titled “Class: 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.
Example
Section titled “Example”const converter = new KimchiProofConverter()
// Convert to SIP formatconst result = converter.toSIP(kimchiProof)if (result.success) { console.log('SIP Proof:', result.result)}Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new KimchiProofConverter():
KimchiProofConverter
Returns
Section titled “Returns”KimchiProofConverter
Properties
Section titled “Properties”system
Section titled “system”
readonlysystem:"kimchi"
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:2611
The proof system this converter handles
Implementation of
Section titled “Implementation of”version
Section titled “version”
readonlyversion:"1.0.0"="1.0.0"
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:2612
Converter version for tracking
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”toSIP()
Section titled “toSIP()”toSIP(
nativeProof,options?):ConversionResult<SingleProof>
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:2616
Convert Kimchi native proof to SIP unified format
Parameters
Section titled “Parameters”nativeProof
Section titled “nativeProof”options?
Section titled “options?”Returns
Section titled “Returns”ConversionResult<SingleProof>
Implementation of
Section titled “Implementation of”fromSIP()
Section titled “fromSIP()”fromSIP(
sipProof,options?):ConversionResult<KimchiNativeProof>
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:2620
Convert SIP unified format to Kimchi native proof
Parameters
Section titled “Parameters”sipProof
Section titled “sipProof”options?
Section titled “options?”Returns
Section titled “Returns”ConversionResult<KimchiNativeProof>
Implementation of
Section titled “Implementation of”validateNative()
Section titled “validateNative()”validateNative(
nativeProof):ConverterValidationResult
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:2624
Validate a Kimchi native proof structure
Parameters
Section titled “Parameters”nativeProof
Section titled “nativeProof”Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”canConvertFromSIP()
Section titled “canConvertFromSIP()”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
Parameters
Section titled “Parameters”sipProof
Section titled “sipProof”Returns
Section titled “Returns”boolean
Implementation of
Section titled “Implementation of”ProofConverter.canConvertFromSIP
getSupportedVersions()
Section titled “getSupportedVersions()”getSupportedVersions():
string[]
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:2632
Get supported Kimchi versions
Returns
Section titled “Returns”string[]