private byte[] GetEncodedRaw() { return(CustomRLP.EncodeList( RLP.EncodeElement(Nonce.HexToByteArray()), RLP.EncodeElement(To.HexToByteArray()), RLP.EncodeElement(Value.HexToByteArray()), RLP.EncodeElement(Data.HexToByteArray()), RLP.EncodeElement(Timestamp.HexToByteArray()), CustomRLP.EncodeLong(Gas), CustomRLP.EncodeLong(GasPrice), RLP.EncodeElement(Type.HexToByteArray()) )); }
public string Serialize() { return("0x" + AionUtils.ByteToHex(RLP.EncodeList( RLP.EncodeElement(Nonce.HexToByteArray()), RLP.EncodeElement(To.HexToByteArray()), RLP.EncodeElement(Value.HexToByteArray()), RLP.EncodeElement(Data.HexToByteArray()), RLP.EncodeElement(Timestamp.HexToByteArray()), CustomRLP.EncodeLong(Gas), CustomRLP.EncodeLong(GasPrice), RLP.EncodeElement(Type.HexToByteArray()), RLP.EncodeElement(Signature) ))); }