| 117 | |
| 118 | //! Comparator implementation. |
| 119 | friend bool operator==(const CPubKey& a, const CPubKey& b) |
| 120 | { |
| 121 | return a.vch[0] == b.vch[0] && |
| 122 | memcmp(a.vch, b.vch, a.size()) == 0; |
| 123 | } |
| 124 | friend bool operator!=(const CPubKey& a, const CPubKey& b) |
| 125 | { |
| 126 | return !(a == b); |