multiformats / java-multibase Goto Github PK
View Code? Open in Web Editor NEWA Java implementation of multibase
License: MIT License
A Java implementation of multibase
License: MIT License
Should this project, along with java-multiaddr and java-multihash, have CI and Code Coverage? I don't know much about how to do this for java projects. Is it straightforward?
I would like to discuss and solicit me working on a PR to add another base see: multiformats/multibase#89
The build of dependent projects rely on this to be found on central or some other mvn repository. I can provide a PR that would allow to run
mvn release:prepare
I could then use the created tag to deploy it to central. Better still, someone else with appropriate authorization could run
mvn release:perform
Here is the PR: #8
According to RFC4648
However, the implementations of Base 32 and Base 64 in this project is as same as Base58, which is not correct.
This is also conflict with the specs stated here multiformats/multibase:
encoding codes name
identity 0x00 8-bit binary (encoder and decoder keeps data unmodified)
base1 1 unary tends to be 11111
base2 0 binary has 1 and 0
base8 7 highest char in octal
base10 9 highest char in decimal
base16 F, f highest char in hex
base32 B, b rfc4648 - no padding - highest letter
base32pad C, c rfc4648 - with padding
base32hex V, v rfc4648 - no padding - highest char
base32hexpad T, t rfc4648 - with padding
base32z h z-base-32 - used by Tahoe-LAFS - highest letter
base58flickr Z highest char
base58btc z highest char
base64 m rfc4648 - no padding
base64pad M rfc4648 - with padding - MIME encoding
base64url u rfc4648 - no padding
base64urlpad U rfc4648 - with padding
Multibase.decode("z111111111111111111111111111111111");
throws this:
java.lang.StringIndexOutOfBoundsException: String index out of range: 33
at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:48)
at java.base/java.lang.String.charAt(String.java:1515)
at io.ipfs.multibase.Base58.decode(Base58.java:68)
at io.ipfs.multibase.Multibase.decode(Multibase.java:55)
...
Hi,
How often do you update the versions for the Java multiformats on Jitpack?
I am trying to use the latest version of java-multibase for the java-multiaddr, but I am unable to do so.
Alternatively, how can I force java-multiaddr or java-multihash to use my local version of the java-multibase?
Cheers!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.