Author

Topic: Python implementation of bs58check? (Read 335 times)

member
Activity: 143
Merit: 90
March 24, 2019, 02:11:53 PM
#9
@Karen Sloot
You need to provide the source when you copy/paste something. I assume you took that from here - https://github.com/bitcoinjs/bs58check
You first post could be a reason for getting banned, so be careful with that.

It seems to be from the mentioned source.The snippet works if the appropriate library is imported.

My question is solved. I lock this thread.
legendary
Activity: 2730
Merit: 7065
March 14, 2019, 04:35:32 AM
#8
@Karen Sloot
You need to provide the source when you copy/paste something. I assume you took that from here - https://github.com/bitcoinjs/bs58check
You first post could be a reason for getting banned, so be careful with that.
newbie
Activity: 1
Merit: 0
March 14, 2019, 03:00:38 AM
#7
Straight Forward Python Implementation Of bs58check

var bs58check = require('bs58check')

var decoded = bs58check.decode('5Kd3NBUAdUnhyzenEwVLy9pBKxSwXvE9FMPyR4UKZvpe6E3AgLr')

console.log(decoded)
// =>

console.log(bs58check.encode(decoded))
// => 5Kd3NBUAdUnhyzenEwVLy9pBKxSwXvE9FMPyR4UKZvpe6E3AgLr
member
Activity: 148
Merit: 45
https://bitaps.com/
legendary
Activity: 2618
Merit: 1007
member
Activity: 143
Merit: 90
February 19, 2019, 03:17:07 PM
#4

Thanks, I know this page and the bitcointalk thread. However, the library it uses is the one (NodeJs lib) I mentioned in my first post.

Hi,
it's not a library but if you are interested in how to implement it I did at https://github.com/darosior/bitcoineasy/blob/995b98f9c440aa4fa3c428750f51b7a59b327fad/bitcoineasy/utils.py#L77

Thanks, this is what I was looking for. I will try it but it looks good so far.
sr. member
Activity: 279
Merit: 435
February 19, 2019, 06:09:59 AM
#3
Is there somewhere a bs58check library in Python available? All I could find was a NodeJs implementation. I need to convert Bitcoin addresses to Bitcoin Gold addresses and I read using bs58check is the best way to do so.
 

Hi,

it's not a library but if you are interested in how to implement it I did at https://github.com/darosior/bitcoineasy/blob/995b98f9c440aa4fa3c428750f51b7a59b327fad/bitcoineasy/utils.py#L77
legendary
Activity: 2730
Merit: 7065
member
Activity: 143
Merit: 90
February 19, 2019, 02:33:01 AM
#1
Is there somewhere a bs58check library in Python available? All I could find was a NodeJs implementation. I need to convert Bitcoin addresses to Bitcoin Gold addresses and I read using bs58check is the best way to do so.
 
Jump to: