@Test public void getAddress() { final String privKey = "a7038726c5a127989d78593c423e3dad93b2d74db90a16c0a58468c9e6617a87"; final String expectedAddress = "ARhJPYxmizqheBQA2dSQAHWfQQsbTSba2S"; ECKeyPair pair = ECKeyPair.create(Numeric.hexStringToByteArray(privKey)); assertThat(pair.getAddress(), is(expectedAddress)); }
public String getAddress() { byte[] script = ScriptBuilder.buildVerificationScript(this.publicKey.getEncoded(true)); return ScriptHash.fromScript(script).toAddress(); }
ECKeyPair { public String getAddress() { byte[] script = ScriptBuilder.buildVerificationScript(this.publicKey.getEncoded(true)); return ScriptHash.fromScript(script).toAddress(); } }
ECKeyPair { public String getAddress() { byte[] script = ScriptBuilder.buildVerificationScript(this.publicKey.getEncoded(true)); return ScriptHash.fromScript(script).toAddress(); } ECKeyPair(ECPrivateKey privateKey, ECPublicKey publicKey); }
ECKeyPair { public String getAddress() { byte[] script = ScriptBuilder.buildVerificationScript(this.publicKey.getEncoded(true)); return ScriptHash.fromScript(script).toAddress(); } ECKeyPair(ECPrivateKey privateKey, ECPublicKey publicKey); ECPrivateKey getPrivateKey(); ECPublicKey getPublicKey(); String getAddress(); BigInteger[] sign(byte[] transactionHash); ECDSASignature signAndGetECDSASignature(byte[] transactionHash); byte[] signAndGetArrayBytes(byte[] transactionHash); static ECKeyPair create(KeyPair keyPair); static ECKeyPair create(ECPrivateKey privateKey); static ECKeyPair create(BigInteger privateKey); static ECKeyPair create(byte[] privateKey); static ECKeyPair createEcKeyPair(); String exportAsWIF(); @Override boolean equals(Object o); @Override int hashCode(); }
ECKeyPair { public String getAddress() { byte[] script = ScriptBuilder.buildVerificationScript(this.publicKey.getEncoded(true)); return ScriptHash.fromScript(script).toAddress(); } ECKeyPair(ECPrivateKey privateKey, ECPublicKey publicKey); ECPrivateKey getPrivateKey(); ECPublicKey getPublicKey(); String getAddress(); BigInteger[] sign(byte[] transactionHash); ECDSASignature signAndGetECDSASignature(byte[] transactionHash); byte[] signAndGetArrayBytes(byte[] transactionHash); static ECKeyPair create(KeyPair keyPair); static ECKeyPair create(ECPrivateKey privateKey); static ECKeyPair create(BigInteger privateKey); static ECKeyPair create(byte[] privateKey); static ECKeyPair createEcKeyPair(); String exportAsWIF(); @Override boolean equals(Object o); @Override int hashCode();  }