@@ -14,18 +14,19 @@ in `config.go`.
14142 . ` dbft ` package contains ` PrivateKey ` /` PublicKey ` interfaces which permits usage of one's own
1515cryptography for signing blocks on ` Commit ` stage. Refer to ` identity.go ` for ` PrivateKey ` /` PublicKey `
1616description. No default implementation is provided.
17- 3 . ` dbft ` package contains ` Hash ` / ` Address ` interfaces which permits usage of one's own
18- hash/address implementation without additional overhead on conversions. Instantiate dBFT with
19- custom hash/address implementation that matches requirements specified in the corresponding
20- documentation. Refer to ` identity.go ` for ` Hash ` / ` Address ` description. No default implementation is
17+ 3 . ` dbft ` package contains ` Hash ` interface which permits usage of one's own
18+ hash implementation without additional overhead on conversions. Instantiate dBFT with
19+ custom hash implementation that matches requirements specified in the corresponding
20+ documentation. Refer to ` identity.go ` for ` Hash ` description. No default implementation is
2121provided.
22224 . ` dbft ` package contains ` Block ` and ` Transaction ` abstractions located at the ` block.go ` and
23- ` transaction.go ` files. Every block must be able to be signed and verified as well as implement setters
24- and getters for main fields. ` Transaction ` is an entity which can be hashed. Two entities having
23+ ` transaction.go ` files. Every block must be able to be signed and verified as well as implement getters
24+ for main fields. ` Transaction ` is an entity which can be hashed. Two entities having
2525equal hashes are considered equal. No default implementation is provided.
26265 . ` dbft ` contains generic interfaces for payloads. No default implementation is provided.
27- 6 . ` timer ` contains default time provider. It should make it easier to write tests
28- concerning dBFT's time depending behaviour.
27+ 6 . ` dbft ` contains generic interfaces for time-related operations (` Timer ` and ` HV ` ). ` timer ` package contains
28+ default time and height-view providers, it contains minimal required timer functionality and may safely be used in
29+ production code. It should make it easier to write tests concerning dBFT's time depending behaviour.
29307 . ` internal ` contains an example of custom identity types and payloads implementation used to implement
3031an example of dBFT's usage with 6-node consensus. Refer to ` internal ` subpackages for type-specific dBFT
3132implementation and tests. Refer to ` internal/simulation ` for an example of dBFT library usage.
0 commit comments