Fast implementation of base58 encoding on golang.
Fast implementation of base58 encoding in Go.
Base algorithm is adapted from https://github.com/trezor/trezor-crypto/blob/master/base58.c
…Encoding - faster by 8 times
Decoding - faster by 12 times
package main
import (
"fmt"
"github.com/mr-tron/base58"
)
func main() {
encoded := "1QCaxc8hutpdZ62iKZsn1TCG3nh7uPZojq"
num, err := base58.Decode(encoded)
if err != nil {
fmt.Printf("Demo %v, got error %s\n", encoded, err)
}
chk := base58.Encode(num)
if encoded == string(chk) {
fmt.Printf ( "Successfully decoded then re-encoded %s\n", encoded )
}
}
No open issues yet, or sync has not completed.