README.md 1.86 KB
Newer Older
tavit ohanian's avatar
tavit ohanian committed
1 2
# go-namesys

3
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)
Hector Sanjuan's avatar
Hector Sanjuan committed
4
[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)
5
[![Go Reference](https://pkg.go.dev/badge/github.com/ipfs/go-namesys.svg)](https://pkg.go.dev/github.com/ipfs/go-namesys)
Hector Sanjuan's avatar
Hector Sanjuan committed
6 7 8
[![Travis CI](https://travis-ci.com/ipfs/go-namesys.svg?branch=master)](https://travis-ci.com/ipfs/go-namesys)


9
> go-namesys provides publish and resolution support for the /ipns/ namespace
Hector Sanjuan's avatar
Hector Sanjuan committed
10

11 12
Package namesys defines `Resolver` and `Publisher` interfaces for IPNS paths, that is, paths in the form of `/ipns/<name_to_be_resolved>`. A "resolved" IPNS path becomes an `/ipfs/<cid>` path.

Marcin Rataj's avatar
Marcin Rataj committed
13
Traditionally, these paths would be in the form of `/ipns/{libp2p-key}`, which references an IPNS record in a distributed `ValueStore` (usually the IPFS DHT).
14

Marcin Rataj's avatar
Marcin Rataj committed
15
Additionally, the `/ipns/` namespace can also be used with domain names that use DNSLink (`/ipns/en.wikipedia-on-ipfs.org`, see https://docs.ipfs.io/concepts/dnslink/).
16 17

The package provides implementations for all three resolvers.
Hector Sanjuan's avatar
Hector Sanjuan committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37

## Table of Contents

- [Install](#install)
- [Usage](#usage)
- [Contribute](#contribute)
- [License](#license)

## Install

`go-namesys` works like a regular Go module:
```
> go get github.com/ipfs/go-namesys
```

## Usage
```
import "github.com/ipfs/go-namesys"
```

38 39
See the [Pkg.go.dev documentation](https://pkg.go.dev/github.com/ipfs/go-namesys)

Hector Sanjuan's avatar
Hector Sanjuan committed
40 41 42 43 44 45 46 47 48 49 50 51
## Contribute

PRs accepted.

Small note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.

## License

This project is dual-licensed under Apache 2.0 and MIT terms:

- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)