Creates a new instance of the Ledger interface The transport MUST be connected already before passing to this constructor
See https://github.com/LedgerHQ/ledgerjs for available transport providers
coin configuration
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
Returns the underlying transport
Checks to make sure that the application running on the ledger at least claims to be the TurtleCoin ledger application
Checks to confirm that the key is a valid public key
the key to check
Checks the ring signatures given for their validity to verify that the proper private key was used for signing purposes
the transaction prefix hash
the key image spent in the input
the ring participant keys
the signatures to verify
Checks to confirm that the scalar is indeed a scalar value
the scalar to check
Checks a given signature using the supplied public key for validity
the message digest (hash)
the public key of the private key used to sign the transaction
the signature to validate
Checks to
Completes the given ring signature for using the supplied parameters
the transaction public key of the input used
the index of the given output in the transaction of the input used
the key of the given output in the transaction of the input used
the random scalar returned by preparing the signatures before completion
the incomplete ring signature for the given input
whether the device will prompt the user to confirm their actions (to disable, must be running a DEBUG build)
Generates the public ephemeral of the given output in a transaction
the key derivation
the index of the output in the transaction
whether the device will prompt the user to confirm their actions (to disable, must be running a DEBUG build)
Generates the private ephemeral of the given output in a transaction
the key derivation
the index of the output in the transaction
whether the device will prompt the user to confirm their actions (to disable, must be running a DEBUG build)
Finalizes a transaction prefix
Generates the transaction key derivation using the private view key stored on the ledger device
the transactions public key
whether the device will prompt the user to confirm their actions (to disable, must be running a DEBUG build)
Generates a key image on the device using the supplied parameters
the transaction public key
the index of the given output in the transaction
the key of the given output in the transaction
whether the device will prompt the user to confirm their actions (to disable, must be running a DEBUG build)
Generates a key image on the device using the supplied parameters
the output derivation
the index of the given output in the transaction
the key of the given output in the transaction
whether the device will prompt the user to confirm their actions (to disable, must be running a DEBUG build)
Generates the ring signatures for the given inputs on the ledger device without revealing the private spend key
the transaction public key of input being spent
the index of the input being spent in the transaction
the output key of the input being spent
our transaction prefix hash
the ring participant keys (mixins + us)
the index of the real output in the input_keys
whether the device will prompt the user to confirm their actions (to disable, must be running a DEBUG build)
Generates a signature of the message digest using the private spend key stored on the ledger device without revealing the private spend key
the message digest (hash)
whether the device will prompt the user to confirm their actions (to disable, must be running a DEBUG build)
Gets the public wallet address from the connected device
whether the device will prompt the user to confirm their actions (to disable, must be running a DEBUG build)
Retrieves the current identification bytes of the application running on the ledger device
Retrieves the private spend key from the connected ledger device !! WARNING !! Retrieving the private spend key from the device may result in a complete loss of funds as the private spend key should normally remain on the device and never leave
whether the device will prompt the user to confirm their actions (to disable, must be running a DEBUG build)
Retrieves the private view key from the connected ledger device
whether the device will prompt the user to confirm their actions (to disable, must be running a DEBUG build)
Retrieves the public keys from the connected ledger device
whether the device will prompt the user to confirm their actions (to disable, must be running a DEBUG build)
Generates a random key pair on the connected device
Retrieves the current version of the application running on the ledger device
Retrieves the the public spend key and private view key from the ledger device which is essentially a view only wallet
whether the device will prompt the user to confirm their actions (to disable, must be running a DEBUG build)
Returns if the application running on the ledger is a debug build
Load a transaction input to the transaction construction process
the transaction public key of the input
the output index of the transaction of the input
the amount of the input
the ring participant keys
the RELATIVE offsets of the ring participant keys
the index in the public_keys of the real output being spent
Load a transaction output to the transaction construction process
the amount of the output
the output key
Calculates the public key for the given private key
the private key
Resets the keys on the ledger device the same way that they are first initialized on the device
Resets the transaction state of the transaction construction process on the ledger device
Exports the completed full transaction that we constructed from the ledger device
Instructs the ledger device to sign the transaction we have constructed
Starts a new transaction construction on the ledger device
the unlock time (or block) of the transaction
the number of inputs that will be included in the transaction
the number of outputs that will be included in the transaction
the transaction public key
the transaction payment id if one needs to be included
Signals to the ledger that we are ready to start loading transaction inputs
Signals to the ledger that we are ready to start loading transaction outputs
Retrieves the current state of the transaction construction process on the ledger device
Generated using TypeDoc
An easy to use interface that uses a Ledger HW transport to communicate with the TurtleCoin application running on a ledger device. Please see. See https://github.com/LedgerHQ/ledgerjs for available transport providers