n3h delivers the networking component for holochain-rust. This allows us to abstract away the complexity of p2p networking from the core Holochain functionality.
Currently it consists of an IPC API that connects holochain to a wrapper around the javascript ipfs implementation, or to a mock networking implementation.
Version 0.0.3 of Holochain was the first to use n3h as its networking component. For each version of the Holochain you must use the a compatible version of n3h. Make sure to download the tagged release to download a version of n3h that is guaranteed to work with the equivalent Holochain version:
- https://github.com/holochain/n3h/releases/tag/v0.0.4-alpha1
- https://github.com/holochain/holochain-rust/releases/tag/v0.0.4-alpha
- https://github.com/holochain/n3h/releases/tag/v0.0.3
- https://github.com/holochain/holochain-rust/releases/tag/v0.0.3
See the API Documentation!
First, make sure our own dependencies are installed:
npm install
Now, to test:
npm test
Holochain is an open source project. We welcome all sorts of participation and are actively working on increasing surface area to accept it. Please see our contributing guidelines for our general practices and protocols on participating in the community.
Copyright (C) 2019, Holochain Trust
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.