2016-08-26 07:00:25 -05:00
|
|
|
# Swarm ENS interface
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
Full documentation for the Ethereum Name Service [can be found as EIP 137](https://github.com/ethereum/EIPs/issues/137).
|
2017-06-12 07:45:17 -05:00
|
|
|
This package offers a simple binding that streamlines the registration of arbitrary UTF8 domain names to swarm content hashes.
|
2016-08-26 07:00:25 -05:00
|
|
|
|
|
|
|
## Development
|
|
|
|
|
2016-08-29 12:34:44 -05:00
|
|
|
The SOL file in contract subdirectory implements the ENS root registry, a simple
|
2017-06-12 07:45:17 -05:00
|
|
|
first-in, first-served registrar for the root namespace, and a simple resolver contract;
|
2016-08-29 12:34:44 -05:00
|
|
|
they're used in tests, and can be used to deploy these contracts for your own purposes.
|
2016-08-26 07:00:25 -05:00
|
|
|
|
|
|
|
The solidity source code can be found at [github.com/arachnid/ens/](https://github.com/arachnid/ens/).
|
|
|
|
|
|
|
|
The go bindings for ENS contracts are generated using `abigen` via the go generator:
|
|
|
|
|
|
|
|
```shell
|
2016-08-29 12:34:44 -05:00
|
|
|
go generate ./contracts/ens
|
2016-08-26 07:00:25 -05:00
|
|
|
```
|