You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{bases}from'multiformats/basics'// Single known multibase.console.log(bases.base32.decode('bozwxq'))// Combine multiple multibases.constbase32or64=bases.base32.decoder.or(bases.base64url.decoder)console.log(base32or64.decode('bozwxq'))console.log(base32or64.decode('udm14'))
Seems like it kind of defeats the whole point of this...
It's always been some sort of fixed list (also in multibase). The difference is that you now decide which ones you care about. The answer may be "all of them". If that's the case you can also create a lookup table as mentioned in that comment: #121 (comment) and implemented e.g. at MatrixAI/js-id@17cf2eb.
The idea is that usually an application won't encounter all possible encodings, but you know which ones to expect.
I just want to decode, but it's not clear how to do it:
???
The text was updated successfully, but these errors were encountered: