go-multibase
go-multibase copied to clipboard
Implementation of multibase parser in go
This is a draft of a multibase binary that does reading + writing from files as well as transcoding. It still leaves room for improvement. For example, the CLI library...
Enhancement idea by @gammazero (extracted from https://github.com/ipfs/go-ipfs/pull/8180#discussion_r671549022): > Would it be worth implementing a multibase Decoder that would take an `io.Reader` and return one as well, with a signature like...
When using go1.15, tests work when running with `go test -vet=off`, but when running `go test` or `go vet` the following appears: ``` # github.com/multiformats/go-multibase ./multibase.go:87:10: conversion from untyped int...
- https://github.com/multiformats/go-base36/pull/4 - https://github.com/mr-tron/base58/pull/14 - https://github.com/mr-tron/base58/pull/15 - Incorporate a fix for https://github.com/ipfs/go-cid/issues/89#issue-495058862 in the process
I am not entirely sure what's going on here, so filing this as a PR before I move on. Specfically the encodings specified as 'non-padding' should not be having trouble...
Would be great to have: ``` go // StringBase returns the Base s is in. func StringBase(s string) Base { ... } // BufferBase returns the Base buf is in....