Refactoring and added documentation comments

This commit is contained in:
obscuren
2014-04-27 17:15:44 +02:00
parent 16e52327a4
commit 338b698091
7 changed files with 68 additions and 62 deletions

View File

@ -26,16 +26,6 @@ func (coder *RlpEncoder) EncodeData(rlpData interface{}) []byte {
return Encode(rlpData)
}
/*
func FromBin(data []byte) uint64 {
if len(data) == 0 {
return 0
}
return FromBin(data[:len(data)-1])*256 + uint64(data[len(data)-1])
}
*/
const (
RlpEmptyList = 0x80
RlpEmptyStr = 0x40