Skip to content
Snippets Groups Projects
Commit 8792bc29 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

go fmt

parent 63fcdfe5
No related branches found
No related tags found
No related merge requests found
Showing
with 44 additions and 36 deletions
...@@ -21,6 +21,7 @@ import ( ...@@ -21,6 +21,7 @@ import (
// Ensure message type conforms to genericSignable interface // Ensure message type conforms to genericSignable interface
// If this ever fails, check for modifications in the source library // If this ever fails, check for modifications in the source library
//
// as well as for this message type // as well as for this message type
var _ = signature.GenericRsaSignable(&NDF{}) var _ = signature.GenericRsaSignable(&NDF{})
......
...@@ -21,6 +21,7 @@ import ( ...@@ -21,6 +21,7 @@ import (
// Ensure message type conforms to genericSignable interface // Ensure message type conforms to genericSignable interface
// If this ever fails, check for modifications in the crypto library // If this ever fails, check for modifications in the crypto library
//
// as well as for this message type // as well as for this message type
var _ = signature.GenericRsaSignable(&RoundError{}) var _ = signature.GenericRsaSignable(&RoundError{})
......
...@@ -23,6 +23,7 @@ import ( ...@@ -23,6 +23,7 @@ import (
// Ensure message type conforms to genericSignable interface // Ensure message type conforms to genericSignable interface
// If this ever fails, check for modifications in the source library // If this ever fails, check for modifications in the source library
//
// as well as for this message type // as well as for this message type
var _ = signature.GenericRsaSignable(&RoundInfo{}) var _ = signature.GenericRsaSignable(&RoundInfo{})
var _ = signature.GenericEccSignable(&RoundInfo{}) var _ = signature.GenericEccSignable(&RoundInfo{})
......
...@@ -21,6 +21,7 @@ import ( ...@@ -21,6 +21,7 @@ import (
// Ensure message type conforms to genericSignable interface // Ensure message type conforms to genericSignable interface
// If this ever fails, check for modifications in the source library // If this ever fails, check for modifications in the source library
//
// as well as for this message type // as well as for this message type
var _ = signature.GenericRsaSignable(&SharePiece{}) var _ = signature.GenericRsaSignable(&SharePiece{})
......
...@@ -46,6 +46,7 @@ func (g *Group) GetString() string { ...@@ -46,6 +46,7 @@ func (g *Group) GetString() string {
// Update sets the group's string and cyclic.Group object // Update sets the group's string and cyclic.Group object
// If these values have not been set yet, we set these two values // If these values have not been set yet, we set these two values
// If these values are set and the newGroup is different, it errors // If these values are set and the newGroup is different, it errors
//
// as the group should be immutable after being set // as the group should be immutable after being set
func (g *Group) Update(newGroup string) error { func (g *Group) Update(newGroup string) error {
g.Lock() g.Lock()
......
...@@ -10,6 +10,7 @@ package network ...@@ -10,6 +10,7 @@ package network
import "fmt" import "fmt"
// Level of validation types for pulling our round structure // Level of validation types for pulling our round structure
//
// Strict: Signatures are checked every time (intended for nodes) // Strict: Signatures are checked every time (intended for nodes)
// Lazy: Only check we're involved, only verifies the first retrieval // Lazy: Only check we're involved, only verifies the first retrieval
// None: no signature checks are done // None: no signature checks are done
......
...@@ -358,6 +358,7 @@ func (s *Implementation) RoundError(err *mixmessages.RoundError, auth *connect.A ...@@ -358,6 +358,7 @@ func (s *Implementation) RoundError(err *mixmessages.RoundError, auth *connect.A
// Consensus node -> cMix node NDF request // Consensus node -> cMix node NDF request
// NOTE: For now cMix nodes serve the NDF to the // NOTE: For now cMix nodes serve the NDF to the
//
// consensus nodes, but this will be reversed // consensus nodes, but this will be reversed
// once consensus generates the NDF // once consensus generates the NDF
func (s *Implementation) GetNDF() (*interconnect.NDF, error) { func (s *Implementation) GetNDF() (*interconnect.NDF, error) {
......
...@@ -67,6 +67,7 @@ func getIpFromList(urls []Service, timeout time.Duration) (string, error) { ...@@ -67,6 +67,7 @@ func getIpFromList(urls []Service, timeout time.Duration) (string, error) {
// getIpMultiCheck returns the caller's public IP address that is provided from // getIpMultiCheck returns the caller's public IP address that is provided from
// multiple Services. Services are tried one by one until the given number of // multiple Services. Services are tried one by one until the given number of
//
// services return the same valid IPv4 address. // services return the same valid IPv4 address.
func getIpMultiCheck(urls []Service, timeout time.Duration, checks int) (string, error) { func getIpMultiCheck(urls []Service, timeout time.Duration, checks int) (string, error) {
serviceList := shuffleStrings(urls) serviceList := shuffleStrings(urls)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment