klaytn / kips

Website
https://kips.klaytn.foundation
18 stars 41 forks source link

[KIP-113] An interface compatible with CandidateList #151

Closed ian0371 closed 9 months ago

ian0371 commented 11 months ago

Make the interface compatible with CandidateList. This facilitates migration from SimpleBLSRegistry to CandidateList, as the consensus logic of Klaytn nodes need not change.

ian0371 commented 11 months ago

@aidan-kwon Register function is only removed from the spec, because we cannot implement a function with the same prototype in CandidateList.

You can refer to the simple bls registry implementation here: https://github.com/klaytn/system-contracts/blob/main/contracts/consensus/SimpleBlsRegistry.sol#L61-L73

blukat29 commented 9 months ago

@kjhman21 @aidan-kwon This PR minizes the interface so that "KIP-113" can be implemented by the current SimpleBLSRegistry and upcoming CandidateList. Registration logic is up to the implementation and perhaps defined in future specs. PTAL.