类 SDFSM2KeyPair

java.lang.Object
org.fisco.bcos.sdk.crypto.keypair.CryptoKeyPair
org.fisco.bcos.sdk.crypto.keypair.SDFSM2KeyPair

public class SDFSM2KeyPair
extends CryptoKeyPair
  • 字段详细资料

    • logger

      protected static org.slf4j.Logger logger
    • DefaultHashAlgorithm

      public static Hash DefaultHashAlgorithm
    • keyIndex

      public long keyIndex
    • password

      public java.lang.String password
    • isInternalKey

      public boolean isInternalKey
  • 构造器详细资料

    • SDFSM2KeyPair

      public SDFSM2KeyPair()
    • SDFSM2KeyPair

      public SDFSM2KeyPair​(java.security.KeyPair javaKeyPair)
    • SDFSM2KeyPair

      protected SDFSM2KeyPair​(com.webank.wedpr.crypto.CryptoResult result)
    • SDFSM2KeyPair

      protected SDFSM2KeyPair​(long keyIndex, java.lang.String password)
  • 方法详细资料

    • generateKeyPair

      public CryptoKeyPair generateKeyPair()
      从类复制的说明: CryptoKeyPair
      Abstract function of generate keyPair randomly
      指定者:
      generateKeyPair 在类中 CryptoKeyPair
      返回:
      the generated keyPair
    • checkSDFCryptoResult

      public static void checkSDFCryptoResult​(com.webank.blockchain.hsm.crypto.sdf.SDFCryptoResult result)
    • createKeyPair

      public CryptoKeyPair createKeyPair​(java.security.KeyPair keyPair)
      从类复制的说明: CryptoKeyPair
      Abstract function of create keyPair randomly
      指定者:
      createKeyPair 在类中 CryptoKeyPair
      参数:
      keyPair - KeyPair type key pair
      返回:
      CryptoKeyPair type key pair
    • createKeyPair

      public SDFSM2KeyPair createKeyPair​(long keyIndex, java.lang.String password)
    • isInternalKey

      public boolean isInternalKey()
    • getKeyIndex

      public long getKeyIndex()
    • getPassword

      public java.lang.String getPassword()
    • getAddressByPublicKey

      public static java.lang.String getAddressByPublicKey​(java.lang.String publicKey)
    • getAddressByPublicKey

      public static byte[] getAddressByPublicKey​(byte[] publicKey)
    • getAddressByPublicKey

      public static byte[] getAddressByPublicKey​(java.math.BigInteger publicKey)