GithubHelp home page GithubHelp logo

ledgerhq / ledger-app-otherdime Goto Github PK

View Code? Open in Web Editor NEW
8.0 11.0 3.0 17 KB

Offchain private key exchange as an attestation demonstration for Ledger Blue and Nano S

License: Apache License 2.0

Makefile 17.30% Python 17.26% C 65.44%
infraprj-4968

ledger-app-otherdime's Introduction

blue-app-otherdime

OtherDime : secure private key swapping application

This application demonstrates a Nano S private key swapping application relying on the attestation logic, locking the code logic to the attestation. For more information, you can refer to the following Medium post : https://medium.com/@Ledger/attestation-redux-proving-code-execution-on-the-ledger-platform-fd11ab0f7c19

To use this application as is, the attestation has to be set to use Ledger as Owner, setting up the attestation as follows on a Nano S

python -m ledgerblue.endorsementSetupLedger --url https://hsmprod.hardwarewallet.com/hsm/process --perso perso_11 --key 1 --endorsement attest_1 --targetId 0x31100002

If you plan to use it within your own group, you can modify the OWNER_PUBLIC_KEY field

Several scripts are available for the most common actions in the py/ directory :

  • createKey to create a new key, ready to be exchanged

  • getPublicKey to retrieve the public key associated to a created key

  • getStatus to retrieve the status of the application regarding the key provisioning and sealing

  • sign to sign a given hash after unsealing the key following a user confirmation. Unsealing makes the key non exchangeable

  • exchange to exchange a sealed key between a personalized dongle and a non personalized dongle, following user confirmation

This application is currently usable on Nano S firmware 1.3+

ledger-app-otherdime's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.