LedgerSigner
Namespace: IotaSdk
Signs with the key at one derivation path on a Ledger device.
Before each signature it reads the public key again and fails with
KeyMismatch if it differs, which happens when another device is connected
or the device was unlocked with a different seed or passphrase.
Use TransactionSigner.from_ledger to sign with it through the transaction
builder, which passes it the transaction's objects so the device shows what
the transaction does.
public class LedgerSigner : ILedgerSigner, System.IDisposable
Inheritance Object → LedgerSigner
Implements ILedgerSigner, IDisposable
Attributes NullableContextAttribute, NullableAttribute
Constructors
LedgerSigner(UInt64)
public LedgerSigner(ulong pointer)
Parameters
pointer UInt64
Methods
Destroy()
public void Destroy()
Dispose()
public void Dispose()
Address()
The address of the signing key.
public Address Address()
Returns
Path()
The derivation path of the signing key.
public string Path()
Returns
PublicKey()
The public key that signs.
public Ed25519PublicKey PublicKey()
Returns
SignPersonalMessage(PersonalMessage)
Sign a personal message.
public async Task<UserSignature> SignPersonalMessage(PersonalMessage message)
Parameters
message PersonalMessage
Returns
Exceptions
SignTransaction(Transaction)
Sign a transaction without its input objects. Fails with
BlindSigningDisabled if blind signing is disabled in the IOTA app's
settings.
public async Task<UserSignature> SignTransaction(Transaction transaction)
Parameters
transaction Transaction
Returns
Exceptions
SignTransactionWithObjects(Transaction, Object[])
Sign a transaction, passing its input objects so the device can clear-sign it. Falls back to blind signing with an IOTA app older than 1.0.
public async Task<UserSignature> SignTransactionWithObjects(Transaction transaction, Object[] objects)
Parameters
transaction Transaction
objects Object[]