func (l LayerID) Uint64() uint64 {
	return uint64(l)
}
Uint64 returns the LayerID as a uint64.
package types
import (
	"bytes"
	"fmt"
	"sort"
	"github.com/libonomy/ed25519"
	"github.com/libonomy/libonomy-p2p/common/util"
	"github.com/libonomy/libonomy-p2p/log"
	"github.com/libonomy/libonomy-p2p/signing"
)
type BlockID Hash20
func (id BlockID) String() string {
	return id.AsHash32().ShortString()
}
func (id BlockID) Field() log.Field { return log.String("block_id", id.AsHash32().ShortString()) }
func (id BlockID) Compare(other BlockID) bool {
	return bytes.Compare(id.ToBytes(), other.ToBytes()) < 0
}
func (id BlockID) AsHash32() Hash32 {
	return Hash20(id).ToHash32()
}
type LayerID uint64
func (l LayerID) Add(layers uint16) LayerID {
	return LayerID(uint64(l) + uint64(layers))
}