Jeiwan / blockchain_go

A simplified blockchain implementation in Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

base58 issue

wangrenxing opened this issue · comments

commented

Tks for u good job.
I find some problem in branch part5
file: base58.go
function Base58Encode:
//for b := range input {
for _, b := range input {
if b == 0x00 {
result = append([]byte{b58Alphabet[0]}, result...)
} else {
break
}
}
function Base58Encode:
//for b := range input {
for _,b := range input {
//if b == 0x00 {
if b == b58Alphabet[0] {
zeroBytes++
}
}

Yes, it is.