shachain: grammer fixes, gofmt conformance, slight interface changes

This commit contains a series of post-merge fixes which include:
  * ToBytes -> Encode
    * As the former version doesn’t _require_ allocation of new slices *
  * Store -> AddNextEntry
    * To communicate to the caller that entries MUST be added
      in order
  * Several grammar, spacing, spelling and gofmt fixes.
This commit is contained in:
Olaoluwa Osuntokun committed 2017-02-24 16:31:37 -08:00
1 parent 7048480a4a
commit 2e25787a74
7 files changed
+146 -124

No files matched your search

+2 -1
View File
@@ -1,9 +1,10 @@
package shachain
import (
"github.com/go-errors/errors"
"reflect"
"testing"
"github.com/go-errors/errors"
)
// bitsToIndex is a helper function which takes 'n' last bits as input and