@Test public void testOpenledgerAddress(){ BrainKey brainKey1 = new BrainKey(TEST_BRAINKEY_OPENLEDGER, 0); BrainKey brainKey2 = new BrainKey(TEST_BRAINKEY_OPENLEDGER, 1); Address ownerAddress = brainKey1.getPublicAddress(Address.BITSHARES_PREFIX); Address activeAddress = brainKey2.getPublicAddress(Address.BITSHARES_PREFIX); Assert.assertEquals("Owner address matches", "BTS6dqT3J7tUcZP6xHo2mHkL8tq8zw5TQgGd6ntRMXH1EoNsCWTzm", ownerAddress.toString()); Assert.assertEquals("Active address matches", "BTS6DKvgY3yPyN7wKrhBGYhrnghhLSVCYz3ugUdi9pDPkicS6B7N2", activeAddress.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; }