some fixes from review

This commit is contained in:
Ethan Buchman
2018-01-13 16:06:31 -05:00
parent 9670519a21
commit e4d52401cf
6 changed files with 25 additions and 10 deletions

View File

@@ -11,8 +11,13 @@ import (
cmn "github.com/tendermint/tmlibs/common"
)
// ID is a hex-encoded crypto.Address
type ID string
// IDByteLength is the length of a crypto.Address. Currently only 20.
// TODO: support other length addresses ?
const IDByteLength = 20
//------------------------------------------------------------------------------
// Persistent peer ID
// TODO: encrypt on disk