Closed he3117 closed 4 years ago
This library is made to work with Arduino IDE, but 8-bit Arduino microcontrollers are not powerful enough. It will certainly work on ESP32 and other 32-bit microcontrollers, but not on original 8-bit Arduino.
What are you planning to build? Maybe I can recommend hardware and libraries that would fit your needs.
I'm trying to build a simple hardware wallet to sign BTC transactions. I have few Ideas about the security model to store seed data on SD card that I like to try.
So there are many options for 32-bit microcontrollers with Arduino IDE support:
If Arduino IDE is not a requirement, you can also look into Micropython - most of the mentioned boards support micropython in some way. We have a micropython build that includes all bitcoin-related stuff here: https://diybitcoinhardware.com/f469-disco/ Personally I find working with MicroPython very enjoyable.
Regarding the libraries, micro-bitcoin should work fine on all of them, you can also look into libwally from Blockstream and secp256k1 from Bitcoin Core. They are battle-tested and actively maintained libraries, and can be made to work with Arduino IDE.
I didn't work on micro-bitcoin for a while but plan to get back to it soon.
Please let me know if something doesn't work or you have further questions :)
Thank you for your complete explanation. I decided to use 2 rotary encoders for inputs instead of simple buttons so I think m5stack is not suitable for my design. I ordered ESP-WROOM-32 I think this should be able to run uBitcoin codes. Basically I'm thinking about a new security model to allow me to store secure data on unsecure device like SD card. I have a background in c++ programming but I'm new in hardware space. Current hardware wallets are good against online hackers but it seems they can be vulnerable to hardware hacking. I hope to find a simple way to prevent hardware attacks.
Sounds interesting! Keep me posted :) I would also like to add your project to this list if you would open-source it.
On which arduino can run this library? At the main page its said this library is for arduino but its seems the compiled code is not fit int to the ram of arduino and complier complain about array size is too big. Can we use https://github.com/arduino-bitcoin/arduino-bitcoin or that projects is dead?