GithubHelp home page GithubHelp logo

00mjk / fisco-bcos-rust-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from atomic-world/fisco-bcos-rust-sdk

0.0 0.0 0.0 704 KB

Rust SDK for FISCO BCOS

Home Page: https://github.com/atomic-world/fisco-bcos-rust-sdk

Rust 97.79% C 0.60% Solidity 0.24% Shell 1.37%

fisco-bcos-rust-sdk's Introduction

fisco-bcos-rust-sdk

logo

GitHub license GitHub issues


Rust SDK 为联盟链平台 FISCO BCOS 提供面向 Rust 的应用程序接口,使用 Rust SDK 可以简单快捷地开发基于 FISCO-BCOS 的 Rust 应用。Rust SDK 仅支持 >=2.7.x, <3.x 版本的 FISCO BCOS;如需主持 3.x 版本的 FISCO BCOS,请移步:https://github.com/atomic-world/fisco-bcos-rust-sdk/tree/fisco-3.x

关键特性

  • 提供 JSON-RPC 接口。
  • 提供预编译合约接口。
  • 支持国密和非国密的 Channel 协议。
  • 支持国密和非国密下部署、调用 Solidity 合约接口。
  • 支持合约编译,可将 Solidity 合约编译成 abi 和 bin 文件。
  • 提供交互式的 CLI 工具,支持用户部署及调用合约、管理区块链状态等操作。
  • 支持合约事件监听。

使用

快速建链

# 获取建链脚本
curl -LO https://github.com/FISCO-BCOS/FISCO-BCOS/releases/download/`curl -s https://api.github.com/repos/FISCO-BCOS/FISCO-BCOS/releases | grep "\"v2\.[0-9]\.[0-9]\"" | sort -u | tail -n 1 | cut -d \" -f 4`/build_chain.sh && chmod u+x build_chain.sh
# 在本地建一个4节点的FISCO BCOS链
# 如果合约交易需启用国密,添加 -g 属性
# 如果 Channel 连接需启用国密,添加 -G 属性
bash build_chain.sh -l "127.0.0.1:4" -p 30300,20200,8545 -i
# 启动FISCO BCOS链
bash nodes/127.0.0.1/start_all.sh

# 将证书文件拷贝至证书配置目录下,此处假设您的证书配置目录为:~/workspace/fisco-bcos-rust-sdk/configs/authentication,请根据实际情况进行替换
cp nodes/127.0.0.1/sdk/* ~/workspace/fisco-bcos-rust-sdk/configs/authentication/

CLI

详情参见:fisco-bcos-cli

API Service

详情参见:fisco-bcos-service

TODO

License

Apache-2.0

fisco-bcos-rust-sdk's People

Contributors

nanjingboy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.