IsEqual returns if two node id is equal.
(target *NodeID)
| 156 | |
| 157 | // IsEqual returns if two node id is equal. |
| 158 | func (id *NodeID) IsEqual(target *NodeID) bool { |
| 159 | return strings.Compare(string(*id), string(*target)) == 0 |
| 160 | } |
| 161 | |
| 162 | // MarshalBinary does the serialization. |
| 163 | func (id *NodeID) MarshalBinary() (keyBytes []byte, err error) { |
no outgoing calls