github.com/annchain/OG@v0.0.9/consensus/annsensus/communication.go (about) 1 package annsensus 2 3 import ( 4 "github.com/annchain/OG/common" 5 "github.com/annchain/OG/common/crypto" 6 "github.com/annchain/OG/common/hexutil" 7 ) 8 9 type AnnsensusPeer struct { 10 Id int 11 PublicKey crypto.PublicKey `json:"-"` 12 Address common.Address `json:"address"` 13 PublicKeyBytes hexutil.Bytes `json:"public_key"` 14 } 15 16 type AnnsensusMessageEvent struct { 17 Message AnnsensusMessage 18 Peer AnnsensusPeer 19 }