Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BitcoinBase58 #20

Open
imaai opened this issue Feb 1, 2021 · 0 comments
Open

BitcoinBase58 #20

imaai opened this issue Feb 1, 2021 · 0 comments

Comments

@imaai
Copy link

imaai commented Feb 1, 2021

@tyler-smith
I've tried using bip32.BitcoinBase58Encoding.EncodeToString for address encoding.

It seems like current encoding is not handling properly leading zero.

What is more, I've cloned repository and swapped basen to btcutil/base58, unit tests passed.

package main

import (
	"fmt"

	"github.com/btcsuite/btcutil/base58"
	"github.com/tyler-smith/go-bip32"
)

func main() {
	b := []byte{0, 1}
	fmt.Println(base58.Encode(b))
	fmt.Println(bip32.BitcoinBase58Encoding.EncodeToString(b))
}
12
2
@imaai imaai changed the title [bug] BitcoinBase58 BitcoinBase58 Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant