在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:scala-network/libipfs开源软件地址:https://github.com/scala-network/libipfs开源编程语言:Go 78.8%开源软件介绍:libIPFSA 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;
} OverviewlibIPFS 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. BuildingRequirements
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:
LICENSEView LICENCE |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论