public Address toAddress(NetworkParameters params){
  byte[] hash160=Utils.sha256hash160(pub);
  return new Address(params,hash160);
}

public Address toAddress ( NetworkParameters params ) { byte [ ] hash160 = Utils . sha256hash160 ( pub ) ; return new Address ( params , hash160 ) ; }
returns the address that corresponds to the public part of this eckey . note that an address is derived from the ripemd - 160 hash of the public key and is not the public key itself ( which is too large to be convenient ) .
