https://github.com/ipld/java-cid
Java implementation of Content Identifier
https://github.com/ipld/java-cid
cid ipld java
Last synced: 9 months ago
JSON representation
Java implementation of Content Identifier
- Host: GitHub
- URL: https://github.com/ipld/java-cid
- Owner: ipld
- License: mit
- Created: 2016-12-11T23:36:20.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-12-03T22:00:03.000Z (about 1 year ago)
- Last Synced: 2025-01-02T07:31:52.208Z (about 1 year ago)
- Topics: cid, ipld, java
- Language: Java
- Homepage:
- Size: 864 KB
- Stars: 44
- Watchers: 12
- Forks: 22
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# java-cid
[](http://ipn.io)
[](http://github.com/ipld/ipld)
[](http://webchat.freenode.net/?channels=%23ipfs)
> A Java implementation of Content Id
This is the [cid](https://github.com/ipld/cid) implementation in Java.
## Table of Contents
- [Install](#install)
- [Usage](#usage)
- [Dependency](#dependency)
- [Testing](#testing)
- [Building](#building)
- [Releasing](#releasing)
- [Maintainers](#maintainers)
- [Contribute](#contribute)
- [License](#license)
## Install
Simply clone this repo.
## Usage
```java
Cid cid = Cid.decode("zdpuAyvkgEDQm9TenwGkd5eNaosSxjgEYd8QatfPetgB1CdEZ");
```
## Dependency
You can use this project by building the JAR file as specified below, or by using [JitPack](https://jitpack.io/#ipld/java-cid/) (also supporting Gradle, SBT, etc).
for Maven, you can add the follwing sections to your POM.XML:
```xml
jitpack.io
https://jitpack.io
com.github.ipld
java-cid
$LATEST_VERSION
```
## Testing
`mvn test`
## Building
`mvn package` will build a JAR file with Maven dependency information.
## Releasing
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.
## Maintainers
Captain: [@ianopolous](https://github.com/ianopolous).
## Contribute
Contributions welcome. Please check out [the issues](https://github.com/ipld/java-cid/issues).
Check out our [contributing document](https://github.com/ipld/ipld/blob/master/contributing.md) 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](https://github.com/ipfs/community/blob/master/code-of-conduct.md).
Small note: If editing the Readme, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.
## License
[MIT](LICENSE) © 2015 Ian Preston