Class ECDSAKeyPair
java.lang.Object
org.fisco.bcos.sdk.crypto.keypair.CryptoKeyPair
org.fisco.bcos.sdk.crypto.keypair.ECDSAKeyPair
public class ECDSAKeyPair extends CryptoKeyPair
-
Field Summary
Fields inherited from class org.fisco.bcos.sdk.crypto.keypair.CryptoKeyPair
ADDRESS_LENGTH_IN_HEX, ADDRESS_SIZE, config, curveName, ECDSA_ACCOUNT_SUBDIR, ECDSA_CURVE_NAME, ECDSA_SIGNATURE_ALGORITHM, GM_ACCOUNT_SUBDIR, hashImpl, hexPrivateKey, hexPublicKey, keyPair, keyStoreSubDir, logger, P12_FILE_POSTFIX, p12KeyStoreFilePath, PEM_FILE_POSTFIX, pemKeyStoreFilePath, PUBLIC_KEY_LENGTH_IN_HEX, PUBLIC_KEY_SIZE, signatureAlgorithm, SM_SIGNATURE_ALGORITHM, SM2_CURVE_NAME -
Constructor Summary
Constructors Modifier Constructor Description ECDSAKeyPair()protectedECDSAKeyPair(com.webank.wedpr.crypto.CryptoResult ecKeyPairInfo)ECDSAKeyPair(java.security.KeyPair javaKeyPair) -
Method Summary
Modifier and Type Method Description CryptoKeyPaircreateKeyPair(java.security.KeyPair javaKeyPair)CryptoKeyPairgenerateKeyPair()generate keyPair randomlyMethods inherited from class org.fisco.bcos.sdk.crypto.keypair.CryptoKeyPair
createKeyPair, createKeyPair, getAddress, getAddress, getAddress, getAddress, getHexPrivateKey, getHexPublicKey, getKeyPair, getKeyStoreFilePath, getKeyStoreSubDir, getP12KeyStoreFilePath, getP12KeyStoreFilePath, getPemKeyStoreFilePath, getPemKeyStoreFilePath, getPublicKeyNoPrefix, setConfig, storeKeyPairWithP12, storeKeyPairWithP12Format, storeKeyPairWithPem, storeKeyPairWithPemFormat
-
Constructor Details
-
ECDSAKeyPair
public ECDSAKeyPair() -
ECDSAKeyPair
public ECDSAKeyPair(java.security.KeyPair javaKeyPair) -
ECDSAKeyPair
protected ECDSAKeyPair(com.webank.wedpr.crypto.CryptoResult ecKeyPairInfo)
-
-
Method Details
-
generateKeyPair
generate keyPair randomly- Specified by:
generateKeyPairin classCryptoKeyPair- Returns:
- the generated keyPair
-
createKeyPair
- Specified by:
createKeyPairin classCryptoKeyPair
-