question: private boolean keyChainContainsPrivateKey ( Collection < ECKey > keyChain , ECKey keyToAdd ) { if ( keyChain == null || keyToAdd == null ) { return false ; } else { for ( ECKey loopKey : keyChain ) { if ( Arrays . equals ( keyToAdd . getPrivKeyBytes ( ) , loopKey . getPrivKeyBytes ( ) ) ) { return true ; } } return false ; } }
target:  This method is here because there is no equals on ECKey.