micro-bitcoin / uBitcoin

Bitcoin library for microcontrollers. Supports Arduino, mbed, bare metal.
https://micro-bitcoin.github.io/
MIT License
168 stars 33 forks source link

How to USE_KECCAK functions? #29

Open tomasz90 opened 1 year ago

tomasz90 commented 1 year ago

Hi!

I just created repo based on your library. I am trying to generate ethereum addresses and pk based on mnemonic and derivation path. This concept works, but I met such issue - I tried to use function keccak_256, but this is restricted by macro USE_KECCAK. I tried many combination of setting USE_KECCAK 1 in cpp file, header file, before imports etc.. none worked. The only one solution, but rather workaround was setting build_flags = -D USE_KECCAK=1 in platformio.ini file. Do you know how to handle this?