diff --git a/.gitignore b/.gitignore index 13a16a8..ba11f7b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,9 @@ config/ output/ out/ -aion.iml +build/ +pack/ +*.iml META-INF build/ pack/ diff --git a/src/org/aion/api/type/core/tx/AbstractTransaction.java b/src/org/aion/api/type/core/tx/AbstractTransaction.java index 25b77e3..32d4d9a 100644 --- a/src/org/aion/api/type/core/tx/AbstractTransaction.java +++ b/src/org/aion/api/type/core/tx/AbstractTransaction.java @@ -115,6 +115,10 @@ public AbstractTransaction(byte[] nonce, Address receiveAddress, byte[] value, b // } // } + public void setSignature(final ISignature signature) { + this.signature = signature; + } + public abstract byte[] getEncoded(); public abstract Address getFrom(); diff --git a/src/org/aion/api/type/core/tx/AionTransaction.java b/src/org/aion/api/type/core/tx/AionTransaction.java index 8011ee3..e602b06 100644 --- a/src/org/aion/api/type/core/tx/AionTransaction.java +++ b/src/org/aion/api/type/core/tx/AionTransaction.java @@ -25,11 +25,6 @@ package org.aion.api.type.core.tx; -import static org.aion.base.util.ByteUtil.ZERO_BYTE_ARRAY; - -import java.math.BigInteger; -import java.util.Arrays; - import org.aion.base.type.Address; import org.aion.base.util.ByteUtil; import org.aion.base.util.TimeInstant; @@ -41,6 +36,11 @@ import org.aion.rlp.RLP; import org.aion.rlp.RLPList; +import java.math.BigInteger; +import java.util.Arrays; + +import static org.aion.base.util.ByteUtil.ZERO_BYTE_ARRAY; + /** * * Aion transaction class. @@ -178,7 +178,7 @@ public byte[] getHash() { return hash; } - private byte[] getRawHash() { + public byte[] getRawHash() { if (!parsed) { rlpParse(); } @@ -350,7 +350,7 @@ public String toString(int maxDataSize) { * For signatures you have to keep also RLP of the transaction without any * signature data */ - private byte[] getEncodedRaw() { + public byte[] getEncodedRaw() { if (!parsed) { rlpParse();