A Java implementation of Content Id
This is the cid implementation in Java.
Simply clone this repo.
Cid cid = Cid.decode("zdpuAyvkgEDQm9TenwGkd5eNaosSxjgEYd8QatfPetgB1CdEZ");
You can use this project by building the JAR file as specified below, or by using JitPack (also supporting Gradle, SBT, etc).
for Maven, you can add the follwing sections to your POM.XML:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.ipld</groupId>
<artifactId>java-cid</artifactId>
<version>$LATEST_VERSION</version>
</dependency>
</dependencies>
mvn test
mvn package
will build a JAR file with Maven dependency information.
The version number is specified in the pom.xml
file and must be changed in order to be accurately reflected in the JAR file manifest. A git tag must be added in the format "vx.x.x" for JitPack to work.
Captain: @ianopolous.
Contributions welcome. Please check out the issues.
Check out our contributing document for more information on how we work, and about contributing in general. Please be aware that all interactions related to IPLD are subject to the IPFS Code of Conduct.
Small note: If editing the Readme, please conform to the standard-readme specification.
MIT © 2015 Ian Preston