someone42 / hardware-bitcoin-wallet

A minimal Bitcoin wallet intended for embedded devices
BSD 2-Clause "Simplified" License
150 stars 44 forks source link

Refactor out hashing loops and public key serialisation #23

Open someone42 opened 11 years ago

someone42 commented 11 years ago

There are lots of loops which hash over a byte buffer. hashWriteByte should be changed to hashWriteBytes. Also, public key serialisation happens a few times; this should be refactored into a new function.