multiformats/multibase

varint

daviddias opened this issue · 2 comments

@jbenet could you confirm that you mean by <varint-base-encoding-code>? A varint merged with the code itself? (high significant bit means that it requires more than one byte) How does that work for cases where the code is a specific char? @whyrusleeping is of the opinion that varint does not make sense in this case (see https://github.com/multiformats/go-multibase/blob/master/multibase.go)

Yeah I think that was copy pasta error.

There is a problem though: what do you do to make the table infinitely
extensible? I guess the bigger constraint is the code has to be in the
right alphabet, which will be hard to satisfy both.

Given a table, matching could involve single char or multiple chars. We
just have to make sure we can have sequences that never overlap completely
(I.e. no code should be a prefix of another). We would have to be really
good at picking codes and not lock ourselves out of longer codes
accidentally...
On Thu, Sep 8, 2016 at 2:42 AM David Dias notifications@github.com wrote:

Assigned #12 #12 to
@jbenet https://github.com/jbenet.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#12 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAIcocNaFy0ZsBBl6FdjbZ-O7VJyeY-eks5qn1ntgaJpZM4Jxvct
.