@Test public void testEip155Encode() { SignatureData signatureData = new SignatureData((byte) 1, new byte[]{}, new byte[]{}); assertThat(createEip155RawTransaction().encodeToRLP(signatureData), is(NumericUtil.hexToBytes( "0xec098504a817c800825208943535353535353535353535353535353535353535880de0" + "b6b3a764000080018080"))); }
byte[] encodeToRLP(SignatureData signatureData) { List<RlpType> values = asRlpValues(signatureData); RlpList rlpList = new RlpList(values); return RlpEncoder.encode(rlpList); }
EthereumTransaction implements TransactionSigner { byte[] encodeToRLP(SignatureData signatureData) { List<RlpType> values = asRlpValues(signatureData); RlpList rlpList = new RlpList(values); return RlpEncoder.encode(rlpList); } }
EthereumTransaction implements TransactionSigner { byte[] encodeToRLP(SignatureData signatureData) { List<RlpType> values = asRlpValues(signatureData); RlpList rlpList = new RlpList(values); return RlpEncoder.encode(rlpList); } EthereumTransaction(BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to,
                             BigInteger value, String data); }
EthereumTransaction implements TransactionSigner { byte[] encodeToRLP(SignatureData signatureData) { List<RlpType> values = asRlpValues(signatureData); RlpList rlpList = new RlpList(values); return RlpEncoder.encode(rlpList); } 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 { byte[] encodeToRLP(SignatureData signatureData) { List<RlpType> values = asRlpValues(signatureData); RlpList rlpList = new RlpList(values); return RlpEncoder.encode(rlpList); } 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);  }