NxtFamilyWallet extends AbstractWallet<NxtTransaction, NxtAddress> implements TransactionEventListener<NxtTransaction> { @Override public byte[] getPublicKey() { return rootKey.getPublicKey(); } NxtFamilyWallet(DeterministicKey entropy, CoinType type);  NxtFamilyWallet(DeterministicKey entropy, CoinType type,
                           @Nullable KeyCrypter keyCrypter, @Nullable KeyParameter key);  NxtFamilyWallet(NxtFamilyKey key, CoinType type);  NxtFamilyWallet(String id, NxtFamilyKey key, CoinType type); @Override byte[] getPublicKey(); @Override String getPublicKeyMnemonic(); @Override SendRequest getEmptyWalletRequest(AbstractAddress destination); @Override SendRequest getSendToRequest(AbstractAddress destination, Value amount); @Override void completeTransaction(SendRequest request); @Override void signTransaction(SendRequest request); void completeTransaction(NxtSendRequest request); void signTransaction(NxtSendRequest request); @Override void signMessage(SignedMessage unsignedMessage, @Nullable KeyParameter aesKey); @Override void verifyMessage(SignedMessage signedMessage); @Override String getPublicKeySerialized(); @Override boolean isNew(); @Override Value getBalance(); @Override void refresh(); @Override boolean isConnected(); @Override boolean isLoading(); @Override void disconnect(); @Override AbstractAddress getChangeAddress(); @Override AbstractAddress getReceiveAddress(); @Override NxtAddress getReceiveAddress(boolean isManualAddressManagement); @Override boolean hasUsedAddresses(); @Override boolean canCreateNewAddresses(); @Override boolean broadcastTxSync(AbstractTransaction tx); boolean broadcastNxtTxSync(NxtTransaction tx); @Override void broadcastTx(AbstractTransaction tx); @Override AbstractAddress getRefundAddress(boolean isManualAddressManagement); Map<Sha256Hash, Transaction> getPendingRawTransactions(); @Override Map<Sha256Hash, NxtTransaction> getTransactions(); @Override NxtTransaction getTransaction(String transactionId); @Override Map<Sha256Hash, NxtTransaction> getPendingTransactions(); @Override List<AbstractAddress> getActiveAddresses(); @Override void markAddressAsUsed(AbstractAddress address); @Override Wallet getWallet(); @Override void setWallet(Wallet wallet); @Override void walletSaveLater(); @Override void walletSaveNow(); @Override boolean isEncryptable(); @Override boolean isEncrypted(); @Override KeyCrypter getKeyCrypter(); @Override void encrypt(KeyCrypter keyCrypter, KeyParameter aesKey); @Override void decrypt(KeyParameter aesKey); NxtSendRequest sendCoinsOffline(NxtAddress address, Value amount); NxtSendRequest sendCoinsOffline(NxtAddress address, Value amount, @Nullable String password); NxtSendRequest sendCoinsOffline(NxtAddress address, Value amount, @Nullable KeyParameter aesKey); @Override void addEventListener(WalletAccountEventListener listener); @Override void addEventListener(WalletAccountEventListener listener, Executor executor); @Override boolean removeEventListener(WalletAccountEventListener listener); @Override boolean isAddressMine(AbstractAddress address); @Override void maybeInitializeAllKeys(); @Override void onConnection(BlockchainConnection blockchainConnection); @Override void onDisconnect(); @Nullable @Override ECKey findKeyFromPubHash(byte[] pubkeyHash); @Nullable @Override ECKey findKeyFromPubKey(byte[] pubkey); @Nullable @Override RedeemData findRedeemDataFromScriptHash(byte[] scriptHash); @Override void onNewBlock(BlockHeader header); @Override void onBlockUpdate(BlockHeader header); @Override void onAddressStatusUpdate(AddressStatus status); @Override void onTransactionHistory(AddressStatus status, List<ServerClient.HistoryTx> historyTxes); @Nullable synchronized Transaction getRawTransaction(Sha256Hash hash); @Override void onTransactionUpdate(NxtTransaction tx); @Override void onTransactionBroadcast(NxtTransaction tx); @Override void onTransactionBroadcastError(NxtTransaction tx);  }
@Test public void testAccountLegacyNXT() throws UnsupportedEncodingException { byte[] pub = nxtAccount.getPublicKey(); long id = Account.getId(pub); assertArrayEquals(nxtPublicKey, pub); assertEquals(nxtRsAddress, Convert.rsAccount(NxtMain.get(), id)); assertEquals(nxtAccountId, id); }