Name of the key that will be used for the operation.
Point X which can be a buffer of ABN128_XY_BUFF_LEN bytes or a hexadecimal string of ABN128_XY_HEX_LEN characters.
Y point which can be a buffer of ABN128_XY_BUFF_LEN bytes or a hexadecimal string of ABN128_XY_HEX_LEN characters.
Optional
neg: booleanWhether the private key should be negated.
Calculates a point from another point and a random context.
Returns a buffer with the calculated point.
If any of the parameters entered are invalid.
InvalidParameterError If any parameter entered is invalid.
HsmError If an error occurs in the operation.
Point X which can be a buffer of ABN128_XY_BUFF_LEN bytes or a hexadecimal string of ABN128_XY_HEX_LEN characters.
Y point which can be a buffer of ABN128_XY_BUFF_LEN bytes or a hexadecimal string of ABN128_XY_HEX_LEN characters.
Multiplies a scalar by the private key and adds a random scalar.
Returns a buffer with the result of the operation.
If the key name is invalid.
InvalidParameterError If any parameter entered is invalid.
HsmError If an error occurs in the operation.
Name of the key that will be used for the operation.
Scalar that can be a buffer of ABN128_XY_BUFF_LEN bytes or a hexadecimal string of ABN128_XY_HEX_LEN characters.
Updates the random context.
Returns a buffer with the calculated point.
If any of the parameters entered are invalid.
InvalidParameterError If any parameter entered is invalid.
HsmError If an error occurs in the operation.
Point X which can be a buffer of ABN128_XY_BUFF_LEN bytes or a hexadecimal string of ABN128_XY_HEX_LEN characters.
Y point which can be a buffer of ABN128_XY_BUFF_LEN bytes or a hexadecimal string of ABN128_XY_HEX_LEN characters.
Returns a random scalar.
Returns a buffer with the random scalar.
HsmError If an error occurs in the operation.
Returns four random scalars.
Returns an array of buffers with random scalars.
HsmError If an error occurs in the operation.
Creates an Extended Private Key (XPrv) for the blockchain in the BIP32 standard.
Key created.
HsmError If it is not possible to create the key or there is an error in the operation.
Name of the key in the HSM.
Type of key generation.
If the key is exportable.
If the key is temporary.
Optional
version: null | VERSION_OPTIONSKey version that must be passed according to the type option
Optional
seed: null | stringBuffer containing the data needed to generate the key. The input data must be passed according to the BLOCKCHAIN_KEYS type option.
Optional
passphrase: null | stringPerforms a Child Key Derivation (CKD) operation. Derives an Extended Private Key (XPrv) for the blockchain in the BIP32 standard.
Information on the derived key.
HsmError If the key cannot be derived or an error occurs in the operation.
Key version.
Index of the key to be derived. Non-hardened keys use an index from 0 to231-1 and hardened (unrestrictedly secure) keys use indexes from231 to232-1, as specified in the BIP32 standard. It is highly recommended to generate hardened keys.
If the key is exportable.
If the key is temporary.
Name of the parent key in the HSM. It must be an XPrv key.
Name of the key that will be derived in the HSM.
Deletes a key stored in the HSM.
Returns true if the key was successfully deleted.
If the key name is invalid.
In the event of an error when deleting the key.
Key name.
Deletes a key stored in the HSM.
Returns true if the key was successfully deleted.
If the key name is invalid.
In the event of an error when deleting the key.
Key name.
Generates an EdDSA signature using the blockchain module.
Signature generated.
HsmError If it is not possible to sign the data or there is an error in the operation.
Type of signature to be generated.
Name of the private key.
Data that will be signed.
Verifies an EdDSA signature using the blockchain module.
True if the signature is valid, false otherwise.
HsmError If an error occurs in the operation.
Type of signature to be verified.
Type of public key.
Public key. This must be a valid public key returned by the Blockchain.getPubKey method.
Signature to be verified. Must be a valid signature returned by the Blockchain.edDsaSign method.
Data that has been signed. It must be a valid hash returned by the Blockchain.hashData method.
Export a private key using the blockchain module.
Buffer with the private key.
HsmError If an error occurs in the operation.
Format of the key to be exported.
Key version.
If the key is to be returned compressed.
Name of the private key.
Retrieves the address of a key using the blockchain module.
Returns the address.
HsmError If the address cannot be retrieved or an error occurs in the operation.
Type of address to be generated.
Address version.
HRP (Human Readable Part) of the key.
Private key from which the address or script-hash will be generated.
Retrieves the properties of a key using the blockchain module.
Returns an object with the key's blockchain data.
HsmError If the address cannot be retrieved or an error occurs in the operation.
Name of the private key.
Recover a public key from a private key using the blockchain module.
Public key.
HsmError If the private key is not found or there is an error in the operation.
Format of the public key to be exported.
Name of the private key.
Calculates a hash using the blockchain module.
Calculated hash.
HsmError If the hash cannot be calculated or an error occurs in the operation.
Hash mode.
Data to be processed. Maximum size of BLOCKCHAIN_MAX_DATA_LEN.
Import a private key using the blockchain_interfaces module.
True if the import was carried out or an exception otherwise.
HsmError If an error occurs in the operation.
Format of the key to be imported.
If the key is exportable.
If the key is temporary.
Name of the private key.
Private key in the format specified in IMPORT_EXPORT_FORMAT.
Retrieves a public key (PBK) from an ECDSA-type signature.
Returns a buffer with the public key.
HsmError If an error occurs in the operation.
Type of signature to be generated.
Hash mode.
Hash calculated as entered in hashData.
Signature as entered in sigType(BLOCKCHAIN_SIG_TYPE).
Sign a hash using the blockchain module.
HsmError If it is not possible to sign the data or there is an error in the operation.
Type of signature to be made.
Hash mode.
Hash calculated according to what is entered in hashMode(BLOCKCHAIN_HASH_MODE).
Name of the private key.
Verifies a signature using the blockchain module.
True if the signature is valid, false otherwise.
HsmError If an error occurs in the operation.
Type of signature made.
Hash mode.
Hash calculated as entered in hashData.
Signature as entered in sigType(BLOCKCHAIN_SIG_TYPE).
Type of public key.
Public key as entered in pubKeyType.
Description
Multiplies a scalar by the private key.
Returns
Returns a buffer with the calculated point.
Throws
If any of the parameters entered are invalid.
Throws
InvalidParameterError If any parameter entered is invalid.
Throws
HsmError If an error occurs in the operation.