mirror of
https://github.com/logos-storage/logos-storage-proofs-circuits.git
synced 2026-01-08 00:13:10 +00:00
Nim: add the missing commas in the JSON export :)
This commit is contained in:
parent
30740a86b5
commit
2f30a0cef8
@ -97,16 +97,16 @@ proc exportProofInput*(fname: string, prfInput: SlotProofInput) =
|
||||
|
||||
h.writeLine("{")
|
||||
h.writeLine(" \"dataSetRoot\": " & toQuotedDecimalF(prfInput.dataSetRoot) )
|
||||
h.writeLine(" \"entropy\": " & toQuotedDecimalF(prfInput.entropy ) )
|
||||
h.writeLine(" \"nCellsPerSlot\": " & $(prfInput.nCells) )
|
||||
h.writeLine(" \"nSlotsPerDataSet\": " & $(prfInput.nSlots) )
|
||||
h.writeLine(" \"slotIndex\": " & $(prfInput.slotIndex) )
|
||||
h.writeLine(" \"slotRoot\": " & toQuotedDecimalF(prfInput.slotRoot) )
|
||||
h.writeLine(" \"slotProof\":")
|
||||
h.writeLine(", \"entropy\": " & toQuotedDecimalF(prfInput.entropy ) )
|
||||
h.writeLine(", \"nCellsPerSlot\": " & $(prfInput.nCells) )
|
||||
h.writeLine(", \"nSlotsPerDataSet\": " & $(prfInput.nSlots) )
|
||||
h.writeLine(", \"slotIndex\": " & $(prfInput.slotIndex) )
|
||||
h.writeLine(", \"slotRoot\": " & toQuotedDecimalF(prfInput.slotRoot) )
|
||||
h.writeLine(", \"slotProof\":")
|
||||
writeSingleMerklePath(h, " ", prfInput.slotProof )
|
||||
h.writeLine(" \"cellData\":")
|
||||
h.writeLine(", \"cellData\":")
|
||||
writeAllCellData(h, collect( newSeq , (for p in prfInput.proofInputs: p.cellData) ))
|
||||
h.writeLine(" \"merklePaths\":")
|
||||
h.writeLine(", \"merklePaths\":")
|
||||
writeAllMerklePaths(h, collect( newSeq , (for p in prfInput.proofInputs: p.merkleProof) ))
|
||||
h.writeLine("}")
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user