@Test public void testAddress(){ Address address = mBrainKey.getPublicAddress(Address.BITSHARES_PREFIX); Assert.assertEquals("Assert that the address created is the expected one", "BTS61UqqgE3ARuTGcckzARsdQm4EMFdBEwYyi1pbwyHrZZWrCDhT2", address.toString()); }
public Address getPublicAddress(String prefix){ return new Address(ECKey.fromPublicOnly(getPublicKey()), prefix); }
BrainKey { public Address getPublicAddress(String prefix){ return new Address(ECKey.fromPublicOnly(getPublicKey()), prefix); } }
BrainKey { public Address getPublicAddress(String prefix){ return new Address(ECKey.fromPublicOnly(getPublicKey()), prefix); } BrainKey(String words, int sequence); }
BrainKey { public Address getPublicAddress(String prefix){ return new Address(ECKey.fromPublicOnly(getPublicKey()), prefix); } BrainKey(String words, int sequence); static String suggest(String words); byte[] getPublicKey(); ECKey getPrivateKey(); String getWalletImportFormat(); Address getPublicAddress(String prefix); String getBrainKey(); int getSequenceNumber(); void setSequenceNumber(int sequenceNumber); }
BrainKey { public Address getPublicAddress(String prefix){ return new Address(ECKey.fromPublicOnly(getPublicKey()), prefix); } BrainKey(String words, int sequence); static String suggest(String words); byte[] getPublicKey(); ECKey getPrivateKey(); String getWalletImportFormat(); Address getPublicAddress(String prefix); String getBrainKey(); int getSequenceNumber(); void setSequenceNumber(int sequenceNumber); static final int DICT_WORD_COUNT; static final int BRAINKEY_WORD_COUNT; static final int DEFAULT_SEQUENCE_NUMBER; }