Colonel Panic

Creator of things no one asked for.

colibri.diy

  • 9 Posts
  • 16 Comments
Joined 2 months ago
cake
Cake day: November 24th, 2024

help-circle

  • Colonel PanicOPMtoColibri WalletNew Colibri.diy Release 0.0.3
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    4 days ago

    Regarding encryption, I’m gonna write up a security-doc that goes into more detail, but in a nutshell yes, keys are encrypted using your password (see also here in the build instructions). Your password is salted and hashed and turned into a 256bit key. The ESP32 has a hardware AES module on board, and encrypts your crypto keys with AES-256 CFB128 before storing them. The password itself is not stored on the device. Currently you’d need to send the pw via RPC command to unlock the wallet, in the future you’ll be able to input it on the device directly (display- and GUI-integrations are planned for 0.2.x).

    After setting a pw, you can either add your existing keys, or generate new ones on-device (ESP32 comes with hardware TRNG capabilities). In the latter case, they’re returned to you once in the RPC response so you can back them up, in the future you’ll be able to show them on the display instead.


  • Colonel PanicOPMtoColibri WalletNew Colibri.diy Release 0.0.3
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    4 days ago

    I appreciate the curiosity :) Let me answer your first and last question first: A hardware wallet acts as a store for your keys, with the premise that they cannot and will never be extracted from said device. A “software wallet” or app (like Metamask) which runs on a phone/PC might be exposed to vulnerabilities of the underlying operating system or environment. Your PC might be exploited, and someone steals the keys stored in the app you’re using to sign, or injects bogus input into the signing process, etc.

    In contrast to that, a hardware wallet is only sent the data to sign, returns the signature, and never exposes the keys to anything connected to it. In the case of Colibri, it has a BLE interface and you can pair your PC or phone, then send commands in JSON-RPC format. Sensitive commands (like signing) require approval on the device, by pushing a physical button.

    Ideally, this process is integrated into a software wallet, to have a GUI to prepare and send your transactions, and double-check and sign them on the hardware wallet - I’m working on a proof of concept integration via a MyEtherWallet.com fork for this.

    So the flow would be something like

    • Connect hw wallet to PC/phone
    • Set up hw wallet: set a password, add or generate keys
    • Connect hw wallet to wallet app
    • Unlock the hw wallet with your password
    • Prepare transaction data in app, and send it to hw wallet
    • Approve request on hw wallet; sign data and return signature to app
    • App broadcasts signed transaction to the blockchain

  • Colonel PanicOPMtoColibri WalletNew Colibri.diy Release 0.0.3
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    4 days ago

    yeah since its still in the pre-release stage, i’m focusing on the firmware and docs for the moment. i’ve started working on a webapp for device setup too, which will ultimately double as landing- and docs-page, and will become more visual.

    here is a picture of various ESP32 dev-boards from my desk, any of these would work:









  • it’s still in a very early stage - it’s built to support multiple currencies, yet i had to start with one, and I picked Ethereum since that’s what I’m most familiar with.

    Under the hood, the firmware uses Trezor’s crypto lib, so supporting Monero would be definitely feasible. I’m using some of the C code from their legacy firmware for the signing process, and Monero is only supported in the new one that uses micro-python - porting would be harder but is doable.

    Maybe someone experienced with how those tx work can chip in, I’ve never really used the chain before. I think ithe project would be a great fit for Monero though, since you can source the components quasi-anonymously.




  • colibri.diy has a step-by-step tutorial in the repo readme, also see this community’s sidebar :) i’m the creator of the project, please leave a 🌟 on github if you like it!

    would be awesome if you’d record your progress, i’m not good with video and editing so i’ll stick to building and writing for the moment, there’s enough left to do anyway 😅 it’s brand-new, just published the code three days ago, so not everything is user-friendly yet

    also added the link to the post body, i honestly wouldn’t have thought anyone would see this post 😅