Giter Site home page Giter Site logo

douganderson444 / ipns-utils Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 1.21 MB

Rust Utilities for working with Interplanetary Name System (IPNS)

Home Page: https://douganderson444.github.io/ipns-utils/ipns_utils/index.html

Rust 81.73% HTML 3.90% JavaScript 0.26% CSS 0.46% TypeScript 13.65%
ipns libp2p libp2p-pubsub rust rust-lang rust-libp2p

ipns-utils's Introduction

IPNS Utilities ๐Ÿ› ๏ธ

Work in Public. This is a work in progress, not ready for production use. Pull Requests welcome.

  • Fork/Clone
  • Create new feat/fix branch
  • Make changes
  • Add tests
  • Submit PR

Crates

  • ipns-entry: [~Complete] The crate for encoding and decoding IPNS records. Encode IPNS Record data into signed CBOR and Protobuf bytes. Decode and verify protobuf IPNS records in Rust. Built in accordance with the IPNS spec.

  • ipns-server: [WIP] Libp2p server that spins up Kad-DHT and IPNS record publishing.

  • ipns-interop-test: [TODO] A crate for testing IPNS interop with Go and JS. This crate is used in the interop test.

  • ipns-publish-persist: [TODO] A crate for ongoing publishing and persisting IPNS records to a datastore.

Usage

See the tests for example usage.

Examples

cargo run --example ipns-entry

Tests

cargo test --workspace

Docs

cargo doc --workspace --no-deps --open

Build from Source

To build, you will need your env var PROTOC= set to the bin location where protoc is saved, as this uses prost to generate the Rust files from Proto files.

This is done in the build step using ./build.rs.

The generated rust files are saved by prost to the target/../build/ipns-entry-*/out/ directory.

ipns-utils's People

Contributors

douganderson444 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.