@Test public void testETCTransaction() { ECKey ecKey = ECKey.fromPrivate(NumericUtil.hexToBytes("0x4646464646464646464646464646464646464646464646464646464646464646")); assertThat(createEip155RawTransaction().signTransaction((byte) 61, ecKey.getPrivKeyBytes()), is( "f86d098504a817c800825208943535353535353535353535353535353535353535880de0b6b3a764000080819da09e59aa73a10ec8fe5a97fe7560806315624c1a67aeeb59310fdc0001ba2b38a0a0719b723ff1b40c21c4235cbbbdaac0bf775be8f479c31caea806710f70f98927")); }
@Override public TxSignResult signTransaction(String chainID, String password, Wallet wallet) { String signedTx = signTransaction(Integer.parseInt(chainID), wallet.decryptMainKey(password)); String txHash = this.calcTxHash(signedTx); return new TxSignResult(signedTx, txHash); }
EthereumTransaction implements TransactionSigner { @Override public TxSignResult signTransaction(String chainID, String password, Wallet wallet) { String signedTx = signTransaction(Integer.parseInt(chainID), wallet.decryptMainKey(password)); String txHash = this.calcTxHash(signedTx); return new TxSignResult(signedTx, txHash); } }
EthereumTransaction implements TransactionSigner { @Override public TxSignResult signTransaction(String chainID, String password, Wallet wallet) { String signedTx = signTransaction(Integer.parseInt(chainID), wallet.decryptMainKey(password)); String txHash = this.calcTxHash(signedTx); return new TxSignResult(signedTx, txHash); } EthereumTransaction(BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to,
                             BigInteger value, String data); }
EthereumTransaction implements TransactionSigner { @Override public TxSignResult signTransaction(String chainID, String password, Wallet wallet) { String signedTx = signTransaction(Integer.parseInt(chainID), wallet.decryptMainKey(password)); String txHash = this.calcTxHash(signedTx); return new TxSignResult(signedTx, txHash); } EthereumTransaction(BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to,
                             BigInteger value, String data); BigInteger getNonce(); BigInteger getGasPrice(); BigInteger getGasLimit(); String getTo(); BigInteger getValue(); String getData(); @Override TxSignResult signTransaction(String chainID, String password, Wallet wallet); }
EthereumTransaction implements TransactionSigner { @Override public TxSignResult signTransaction(String chainID, String password, Wallet wallet) { String signedTx = signTransaction(Integer.parseInt(chainID), wallet.decryptMainKey(password)); String txHash = this.calcTxHash(signedTx); return new TxSignResult(signedTx, txHash); } EthereumTransaction(BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to,
                             BigInteger value, String data); BigInteger getNonce(); BigInteger getGasPrice(); BigInteger getGasLimit(); String getTo(); BigInteger getValue(); String getData(); @Override TxSignResult signTransaction(String chainID, String password, Wallet wallet);  }