• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

scala-network/libipfs: A C-Style library implemented in Go for using IPFS in C++ ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

scala-network/libipfs

开源软件地址:

https://github.com/scala-network/libipfs

开源编程语言:

Go 78.8%

开源软件介绍:

libIPFS

A C-style library library that wraps around go-ipfs as a library(not an executable that is embedded) and provides a very simple API.

Example

#include "libipfs-linux.h"
#include <iostream>

int main() {
    /* Starts the IPFS node */
    std::cout << IPFSStartNode("./") << std::endl;
    /* Resolve an IPNS name */
    std::cout << ResolveIPNSName("/ipns/ipfs.io") << std::endl;
    /* Stop IPFS Node */
    std::cout << IPFSStopNode() << std::endl;
}

Overview

libIPFS is used by the Scala Network Project to retrieve and publish critical information on to IPFS.

It runs a barebones IPFS instance and provides functions to be called from C/C++.

Why?

Currently, no simple implementation or API exists for IPFS in C or C++. Instead of writing, or re-writing, large parts of IPFS in C or C++ we rather use Go and compile it to a C or C++ compatible library. IPFS is implemented in Go already.

Building

Requirements

  • go >= 1.16
  • make >= 4.2.1
  • gcc and g++ >= 9.3.0

To build the library you can use the following commands, the outputs can be found in bin/

go mod download
make build

You need an actual mac to build mac binaries, run:

make build build_macos_x64 or build_macos_arm64

LICENSE

View LICENCE




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
hoochanlon/fq-book: 发布时间:2022-06-22
下一篇:
ipfs/go-ipfs-ds-help: Utilities for parsing and creating datastore keys used by ...发布时间:2022-06-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap