matja / bitcoin-tool

Tool for converting Bitcoin keys and addresses
206 stars 116 forks source link

public-key-sha address generation #15

Closed hrobeers closed 8 years ago

hrobeers commented 8 years ago
bitcoin-tool --input-file <(echo $MY_STRING | openssl sha256 -binary) \
--input-type public-key-sha \
--input-format raw \
--network bitcoin \
--output-format base58check \
--output-type address \
--public-key-compression compressed

Returns the same address for every $MY_STRING. I will try to fix when I find some time.