spacemeshos / poet

Spacemesh PoET service reference implementation
MIT License
22 stars 13 forks source link

Clean up the structure of round state.bin #384

Open poszu opened 1 year ago

poszu commented 1 year ago

The round state file contains many fields that are not required anymore:

type persistedRoundState struct {
    SecurityParam uint8
    Members       [][]byte // Deprecated
    Statement     []byte
    ParkedNodes   [][]byte // Deprecated
    NumLeaves     uint64
    NIP           *shared.MerkleProof
}

To remove:

Questionable fields:

Also, the serialization format could be changed to a human-readable format like JSON for:

💡 Migration will be required to make sure that already deployed poets can upgrade easily.

bansaltushar014 commented 1 year ago

Hi @poszu ,

Could you please clarify about the Questionable fields?

Are these yet to finalise or some research work is pending on those?