Skip to content

(WIP) MicroPython Bitcoin bundle for microcontrollers

License

Notifications You must be signed in to change notification settings

selfcustody/uhashlib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hash functions for Bitcoin

extends hashlib micropython module with ripemd160 and sha512 functions.

Also adds a single-line function for pbkdf2_hmac_sha512:

pbkdf2_hmac_sha512(password, salt, iterations, bytes_to_read)

in Bitcoin to generate a seed:

pbkdf2_hmac_sha512(mnemonic, 'mnemonic'+password, 2048, 64)

TODO:

  • make API the same as in normal python
  • make C-optimized hmac and pbkdf2 versions with standard python API

About

(WIP) MicroPython Bitcoin bundle for microcontrollers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 99.5%
  • Makefile 0.5%