2

I've read quite some material but it boils down that there "is a chip" on Ledger Nano S and the private key never leaves it. But what I would like to know is the following.

  1. Is it encrypted? If so, how? Using my PIN?

  2. I know the device is reset after 3 false tries while entering the PIN, but is the private key really encrypted inside this chip? Otherwise one could (in theory) remove the chip, put is somewhere else and read it out.

Any thoughts?

1 Answer 1

4

Ledger uses a secure element chip to store the private key.

In simplified terms this means that the private key is stored on a special chip that is almost like a small computer with a Operating System with a very strict and well defined interface. This interface is designed to NEVER allow an extraction of the private key except during the creation of the key when the seed is shown on the display. The only operation that uses the private key that is supported is to send input (read transactions in terms of bitcoin) that the chip signs with the private key, and then returns the signature. Therefore the only output you could get from the chip is the signed transaction, and never the private key, no matter where you put the chip.

Secure element chips are not a new invention by Ledger, but actually a technology used in many other use cases (other examples are passports and credit cards). Ledger uses a Javacard with version 3+, which supports creation of ECC keys that have size of bitcoin keys.
It should however be noted, that even though the chips are designed to never let anyone extract the key from the chip, even with physical access to it, a well motivated and funded actor (like NSA) could theoretically extract the private key.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.