interface Hsm {
    connecting: boolean;
    connected: boolean;
    key: Key;
    blockchain: Blockchain;
    cryptography: Cryptography;
    user: User;
    ocra: Ocra;
    management: Management;
    disconnect(): Promise<boolean>;
}

Properties

connecting: boolean

Indicates whether the client is connecting to the HSM

false
connected: boolean

Indicates whether the client is connected to the HSM

false
key: Key

Object for manipulating keys

blockchain: Blockchain

Object for manipulating Bip 32 keys

cryptography: Cryptography

Object for manipulating cryptography

user: User

Object for user manipulation

ocra: Ocra

Object for handling OCRA

management: Management

Object for handling management

Methods

  • Ends the connection with the HSM

    Returns Promise<boolean>

    • Returns true if the connection was successfully terminated
    • Throws exception if client is not connected to HSM