类 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 SignatureResult
    Signature getSignature()  
    void setSignature​(Signature signature)  
    SignatureResult sign​(byte[] hash, CryptoKeyPair cryptoKeyPair)
    sign raw transaction hash byte array and get signatrue result
    SignatureResult 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

      public TransactionSignerServcie​(Signature signature)
      create the TransactionSignerService according the the given signature
      参数:
      signature - the signature
  • 方法详细资料

    • sign

      public SignatureResult sign​(java.lang.String hash, CryptoKeyPair cryptoKeyPair)
      从接口复制的说明: TransactionSignerInterface
      sign raw transaction hash string and get signatrue result
      指定者:
      sign 在接口中 TransactionSignerInterface
      参数:
      hash - raw transaction hash string to be signed
      cryptoKeyPair - keypair
      返回:
      signatrue result
    • sign

      public SignatureResult sign​(byte[] hash, CryptoKeyPair cryptoKeyPair)
      从接口复制的说明: TransactionSignerInterface
      sign raw transaction hash byte array and get signatrue result
      指定者:
      sign 在接口中 TransactionSignerInterface
      参数:
      hash - raw transaction hash byte array to be signed
      cryptoKeyPair - keypair
      返回:
      signatrue result
    • getSignature

      public Signature getSignature()
      返回:
      the signature
    • setSignature

      public void setSignature​(Signature signature)
      参数:
      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 string
      cryptoType - 0-ECC, 1-GM
      publicKey - public key string of signer
      返回:
      SignatureResult