public class TransactionEncoderService extends java.lang.Object implements TransactionEncoderInterface
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
TransactionEncoderService(CryptoSuite cryptoSuite) |
TransactionEncoderService(CryptoSuite cryptoSuite,
RemoteSignProviderInterface transactionSignProvider) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
encode(long transactionData)
Tars encode based on TransactionData
|
byte[] |
encodeAndHashBytes(long transactionData)
Tars encode and hash based on TransactionData
|
java.lang.String |
encodeAndSign(long transactionData,
CryptoKeyPair cryptoKeyPair,
int attribute)
Tars encode and sign based on TransactionData
|
byte[] |
encodeAndSignBytes(long transactionData,
CryptoKeyPair cryptoKeyPair,
int attribute)
Tars encode and sign based on TransactionData
|
byte[] |
encodeToTransactionBytes(long transactionData,
byte[] hash,
SignatureResult result,
int attribute)
Tars encode transactionData to Transaction bytes
|
byte[] |
encodeToTransactionBytes(long transactionData,
SignatureResult result,
int attribute)
Tars encode transactionData to Transaction bytes
|
Signature |
getSignature() |
public TransactionEncoderService(CryptoSuite cryptoSuite)
public TransactionEncoderService(CryptoSuite cryptoSuite, RemoteSignProviderInterface transactionSignProvider)
public byte[] encode(long transactionData)
throws io.github.alleriawindrunner.sdk.jni.common.JniException
TransactionEncoderInterfaceencode 在接口中 TransactionEncoderInterfacetransactionData - transaction dataio.github.alleriawindrunner.sdk.jni.common.JniException - throw when encode transaction errorpublic java.lang.String encodeAndSign(long transactionData,
CryptoKeyPair cryptoKeyPair,
int attribute)
throws io.github.alleriawindrunner.sdk.jni.common.JniException
TransactionEncoderInterfaceencodeAndSign 在接口中 TransactionEncoderInterfacetransactionData - data to be encodedcryptoKeyPair - keypairattribute - transaction attribute, see more in TransactionAttributeio.github.alleriawindrunner.sdk.jni.common.JniException - throw when encode transaction errorpublic byte[] encodeAndHashBytes(long transactionData)
throws io.github.alleriawindrunner.sdk.jni.common.JniException
TransactionEncoderInterfaceencodeAndHashBytes 在接口中 TransactionEncoderInterfacetransactionData - data to be encodedio.github.alleriawindrunner.sdk.jni.common.JniException - throw when encode transaction errorpublic byte[] encodeAndSignBytes(long transactionData,
CryptoKeyPair cryptoKeyPair,
int attribute)
throws io.github.alleriawindrunner.sdk.jni.common.JniException
TransactionEncoderInterfaceencodeAndSignBytes 在接口中 TransactionEncoderInterfacetransactionData - data to be encodedcryptoKeyPair - keypairattribute - transaction attribute, see more in TransactionAttributeio.github.alleriawindrunner.sdk.jni.common.JniException - throw when encode transaction errorpublic byte[] encodeToTransactionBytes(long transactionData,
byte[] hash,
SignatureResult result,
int attribute)
throws io.github.alleriawindrunner.sdk.jni.common.JniException
TransactionEncoderInterfaceencodeToTransactionBytes 在接口中 TransactionEncoderInterfacetransactionData - raw transaction datahash - transaction hashresult - transaction signatureattribute - transaction attribute, see more in TransactionAttributeio.github.alleriawindrunner.sdk.jni.common.JniException - throw when encode transaction errorpublic byte[] encodeToTransactionBytes(long transactionData,
SignatureResult result,
int attribute)
throws io.github.alleriawindrunner.sdk.jni.common.JniException
TransactionEncoderInterfaceencodeToTransactionBytes 在接口中 TransactionEncoderInterfacetransactionData - raw transaction dataresult - transaction signatureattribute - transaction attribute, see more in TransactionAttributeio.github.alleriawindrunner.sdk.jni.common.JniException - throw when encode transaction errorpublic Signature getSignature()