Skip to content

Commit

Permalink
Update some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilthoniel committed Apr 28, 2020
1 parent 9dba95e commit fc1db89
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions consensus/mod.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
type Proposal interface {
encoding.Packable

// GetIndex returns the index of the proposal from the first one.
GetIndex() uint64

// GetHash returns the hash of the proposal.
Expand Down Expand Up @@ -49,10 +50,11 @@ type ChainFactory interface {

// Actor is the primitive to send proposals to a consensus implementation.
type Actor interface {
// Propose performs the consensus algorithm using the list of nodes
// as participants.
// Propose performs the consensus algorithm. The list of participants is
// left to the implementation.
Propose(proposal Proposal) error

// Close must clean the resources of the actor.
Close() error
}

Expand Down
1 change: 1 addition & 0 deletions cosi/threshold/signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,5 +209,6 @@ func (f verifierFactory) FromAuthority(authority crypto.CollectiveAuthority) (cr
}

func (f verifierFactory) FromArray([]crypto.PublicKey) (crypto.Verifier, error) {
// TODO: think about this
return nil, xerrors.New("not implemented")
}
2 changes: 2 additions & 0 deletions ledger/byzcoin/mod.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ const (
)

var (
// AuthorityKey is a reserved instance key for the roster of the chain. It
// may evolve after each block.
authorityKey = []byte{0x01}
)

Expand Down

0 comments on commit fc1db89

Please sign in to comment.