cardano-ledger
cardano-ledger copied to clipboard
Constraints and properties for GOVCERT rule
Already exists here https://github.com/input-output-hk/cardano-ledger/blob/f4269490502fc928c13a86e71c059d88cb5ac995/libs/cardano-ledger-test/src/Test/Cardano/Ledger/STS.hs#L439
We need to implement as many properties that verify that the rules behaves as expected, which is still missing
This ticket defines some properties that can be testes with property testing: https://github.com/input-output-hk/cardano-ledger/issues/3881
In particular utilizing GetCommitteeMembersState to check the state change after certificate submission:
- Status is Active and authorized Hot credential is
MemberNotAuthorizedright after committee member was enacted - Status is Active and Authorized Hot credential in
MemberAuthorizedmatches the one that was supplied in the authorization certificate, right after submission of such certificate - Status is Active and Hot credential status is
MemberResignedright after submission of resigning certificate