@Test public void decoding() throws Exception { if(CoinDefinition.supportsTestNet) { Address a = new Address(testParams, "n4eA2nbYqErp7H6jebchxAN59DmNpksexv"); assertEquals("fda79a24e50ff70ff42f7d89585da5bd19d9e5cc", Utils.bytesToHexString(a.getHash160())); } Address b = new Address(mainParams, CoinDefinition.UNITTEST_ADDRESS); assertEquals("4a22c3c4cbb31e4d03b15550636762bda0baf85a", Utils.bytesToHexString(b.getHash160())); }
public byte[] getHash160() { return bytes; }
Address extends VersionedChecksummedBytes { public byte[] getHash160() { return bytes; } }
Address extends VersionedChecksummedBytes { public byte[] getHash160() { return bytes; } Address(NetworkParameters params, int version, byte[] hash160);  Address(NetworkParameters params, byte[] hash160);  Address(@Nullable NetworkParameters params, String address); }
Address extends VersionedChecksummedBytes { public byte[] getHash160() { return bytes; } Address(NetworkParameters params, int version, byte[] hash160);  Address(NetworkParameters params, byte[] hash160);  Address(@Nullable NetworkParameters params, String address); static Address fromP2SHHash(NetworkParameters params, byte[] hash160); static Address fromP2SHScript(NetworkParameters params, Script scriptPubKey); byte[] getHash160(); boolean isP2SHAddress(); @Nullable NetworkParameters getParameters(); @Nullable static NetworkParameters getParametersFromAddress(String address); }
Address extends VersionedChecksummedBytes { public byte[] getHash160() { return bytes; } Address(NetworkParameters params, int version, byte[] hash160);  Address(NetworkParameters params, byte[] hash160);  Address(@Nullable NetworkParameters params, String address); static Address fromP2SHHash(NetworkParameters params, byte[] hash160); static Address fromP2SHScript(NetworkParameters params, Script scriptPubKey); byte[] getHash160(); boolean isP2SHAddress(); @Nullable NetworkParameters getParameters(); @Nullable static NetworkParameters getParametersFromAddress(String address); static final int LENGTH; }