类 TransactionSignerServcie
java.lang.Object
org.fisco.bcos.sdk.transaction.signer.TransactionSignerServcie
- 所有已实现的接口:
TransactionSignerInterface
public class TransactionSignerServcie extends java.lang.Object implements TransactionSignerInterface
-
构造器概要
构造器 构造器 说明 TransactionSignerServcie(Signature signature)
create the TransactionSignerService according the the given signature -
方法概要
修饰符和类型 方法 说明 static SignatureResult
decodeSignatureString(java.lang.String signatureStr, int cryptoType, java.lang.String publicKey)
decode signature to SignatureResultSignature
getSignature()
void
setSignature(Signature signature)
SignatureResult
sign(byte[] hash, CryptoKeyPair cryptoKeyPair)
sign raw transaction hash byte array and get signatrue resultSignatureResult
sign(java.lang.String hash, CryptoKeyPair cryptoKeyPair)
sign raw transaction hash string and get signatrue result从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
构造器详细资料
-
TransactionSignerServcie
create the TransactionSignerService according the the given signature- 参数:
signature
- the signature
-
-
方法详细资料
-
sign
从接口复制的说明:TransactionSignerInterface
sign raw transaction hash string and get signatrue result- 指定者:
sign
在接口中TransactionSignerInterface
- 参数:
hash
- raw transaction hash string to be signedcryptoKeyPair
- keypair- 返回:
- signatrue result
-
sign
从接口复制的说明:TransactionSignerInterface
sign raw transaction hash byte array and get signatrue result- 指定者:
sign
在接口中TransactionSignerInterface
- 参数:
hash
- raw transaction hash byte array to be signedcryptoKeyPair
- keypair- 返回:
- signatrue result
-
getSignature
- 返回:
- the signature
-
setSignature
- 参数:
signature
- the signature to set
-
decodeSignatureString
public static SignatureResult decodeSignatureString(java.lang.String signatureStr, int cryptoType, java.lang.String publicKey)decode signature to SignatureResult- 参数:
signatureStr
- the signature stringcryptoType
- 0-ECC, 1-GMpublicKey
- public key string of signer- 返回:
- SignatureResult
-