Skip to content

Commit

Permalink
mixing: add mixclient package
Browse files Browse the repository at this point in the history
The mixclient package implements a client for the peer-to-peer mixing process.
It depends on a mixpool to send and receive mixing messages to and from the
network.
  • Loading branch information
jrick committed Nov 7, 2023
1 parent 14218d5 commit 5d17504
Show file tree
Hide file tree
Showing 5 changed files with 1,267 additions and 0 deletions.
18 changes: 18 additions & 0 deletions mixing/mixclient/blame.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package mixclient

// blamedIdentities identifies detected misbehaving peers.
//
// If a run returns a blamedIdentities error, these peers are immediately
// excluded and the next run is started.
//
// If a run errors but blame requires revealing secrets and blame assignment,
// a blamedIdentities error will be returned by the blame function.
type blamedIdentities []identity

func (e blamedIdentities) Error() string {
return "blamed assigned"
}

func (e blamedIdentities) blamed() []identity {
return ([]identity)(e)
}
Loading

0 comments on commit 5d17504

Please sign in to comment.