Hex encoded key value
Key type
Parameters of the key type
Algorithm used for key generation.
Key data.
Parameters of the algorithm.
Computes EcDSA signature of message hash. Curve name is derrived from private key.
Message hash
Computes EdDSA signature of message hash. Curve name is derrived from private key.
Message hash
Computes hash of message using hashing function of signature schema.
Hex encoded input data
Signing schema to use
Computes SM2 signature of message hash.
Only default SM2 ID is supported.
Message hash
Computes signature of message hash using specified signature schema.
Message hash
Signature schema to use
Decrypts encrypted private key with supplied password.
Password to decrypt with
For aad in decryption
Optional Scrypt params
Encrypts private key with supplied password.
Password to encrypt with
For aad in encryption
16 secure random bytes
Optional Scrypt params
Derives Public key out of Private key using EcDSA algorithm.
Derives Public key out of Private key using EdDSA algorithm.
Derives Public key out of Private key.
Derives Public key out of Private key using SM2 algorithm.
Tests if signing schema is compatible with key type.
Signing schema to use
Gets JSON representation of the Key (Public/Private).
Gets Wallet Import Format (WIF) representation of the PrivateKey.
Signs the data with supplied private key using signature schema.
If the signature schema is not provided, the default schema for this key type is used.
This method is not suitable, if external keys (Ledger, TPM, ...) support is required.
Hex encoded input data
Signing schema to use
Id of public key
Asynchroniously signs the data with supplied private key using signature schema.
If the signature schema is not provided, the default schema for this key type is used.
This method is suitable, if external keys (Ledger, TPM, ...) support is required.
Hex encoded input data
Signing schema to use
Id of public key
Creates PrivateKey from Wallet Import Format (WIF) representation.
WIF private key representation
Creates PrivateKey from mnemonic according to BIP39 protocol.
Space separated list of words
Generates random Private key using supplied Key type and parameters.
If no Key type or parameters is supplied, default SDK key type with default parameters will be used.
The key type
The parameters for the key type
Generated using TypeDoc
Creates Key.
If no algorithm or parameters are specified, default values will be used. This is strongly discurraged, because it will forbid using other Key types. Therefore use it only for testing.