B.F.M. UNITY
3.5.0
3.5.0
  • 💎BF​M Unity : Blockchain · Finance · Metaverse
  • BFM Lite | 比坊梦轻量版
    • 🌱新人必看(🔥)
    • 驾驶舱 (运行) (🔥)
      • 私钥云保管 🔑 ☁️
    • BFM Navigation
    • Main Bridge (Navigator)
  • BFM Unity | 比坊梦联合体
    • 陈列室 (历程)
      • 虚拟资产编号名录
    • 新人指导
      • 【管理】宪章说明
      • 【选择】学区房 or 比特币
    • 【运营】加入组建
      • 群公告备份
    • 【组织】团队构成
  • 🦣BFM Eco. | 比坊梦区块生态
    • BFM Eco. 🛰️
    • 链上数据分析
    • Cross-Chain Bridge
    • ETH - MainNet
      • Layer-2
        • MATIC - Polygon
        • Arbitrum
        • OP - Optimism
      • SHIB - Shiba Inu
    • BNB - BSC
    • AVAX - Avalanche
    • SOL - Solana
    • 其他公链
      • ADA - Cardano
      • ATOM - Cosmos
        • ☠️LUNA - Terra(已亡)
      • FTM - Fantom
      • Flow
      • Near
      • IPFS/FIL
    • BFM Meta
      • BFM DeFi 🦄️👻
      • BFM NFT🃏🧩
      • BFM Meme 🐶 💩
      • BFM GameFi 🎮👾
  • BFM DA | 比坊梦数产
    • 资产配置 🕙 ⌚️(🔥)
      • 时间校准研究
      • 战略资产配置——卓尔金历 🕙
        • 卓尔金升级1——拟合函数
        • 卓尔金升级2——误差分析
        • 卓尔金升级3——智能实验
        • 卓尔金升级4——图灵完备
        • 卓尔金升级5——动态图表
        • 卓尔金升级6——分类网络
        • 卓尔金升级7——引力透镜
        • 卓尔金升级8——货币政策
        • 卓尔金升级9——杠杆控制
        • 卓尔金升级A1——市占幂修
        • 卓尔金升级A2——参数读取
        • 卓尔金升级A3——止损熔断
        • 卓尔金升级A4——最大回撤
        • 卓尔金升级A5——波动率止损
        • 卓尔金升级A6——安全带
        • 卓尔金升级A7——在线图表
        • 卓尔金升级A8——商业化
        • 卓尔金升级A9——下拉菜单
        • 卓尔金升级A10——xlwings与Python连接
        • 卓尔金升级A11——KDE核密度估计
        • 卓尔金升级A12——杠杆风险控制,凯利准则
        • Plotly-制作数据仪表盘
        • 如何获取数字货币数据
        • 卓尔金历法旧版页面
      • 战术资产配置——哈布历⌚️
        • 哈布历法1层次
        • 哈布历法2层次
        • 哈布历法3——仓位单元,量子调仓
        • 已废弃
    • BFM Unity Reserve System
    • BFM Foundation
      • 比坊梦全球互联网 基金
      • 若尘的基金
    • BFM Trading Strategy♟
    • 影银行 (枢纽)
      • 自营业务
      • 个人业务
      • 企业业务
      • 创世业务
    • 会客厅 (赞助) 💰 & 资产公示
    • 财务
  • BFM Trad. | 比坊梦金典
    • FOReign EXchange
    • Cloud-POS,CNP 💳
    • Stock Investment
      • 选股
    • Fund Investment
      • 金融
      • 地产
      • 白酒
      • 医药
      • 互联网
      • 新能源
    • Gold investment
    • 国债逆回购
    • 可转债打新
    • Offshore Finance 🌍
    • Offshore Entity
    • International Phone Number
    • International Bank Card
    • 桥接性数字钱包
    • 跨境收付
    • 礼品卡与场外交易
    • 草稿
  • BFM R-Ins. | 比坊梦科学研究院
    • 数学研究部
    • 算法科学部
      • 【算法】算法描述
        • 【研究】参考文献
        • BFM 维基百科翻译
        • 陵墓
    • 组织架构部
    • 项目流程部
      • 【软件】行动手册 🚩
      • 【软件】其他代码
      • 【软件】Graph algorithms and currency arbitrage
      • 【创新】未来发展
      • 【创新】DeFi - AMM
    • 项目架构部
      • 【架构】架构设计
        • 【规划】发展路线
        • 【规划】AMM下潜
        • 弯路
    • 量子科学部
      • LV5-研究院 (量子) ☢️
    • 数据智能部
      • LV6-星魔方 (分类) 🎲
        • 数据分析-精炼
        • 数据分析-实验
        • 人工智能-实验
  • BFM D-Ins. | 比坊梦工程设计院
    • API接口
      • 币安API实验室🚩
    • 高并发
      • 新版本高并发实验室🚩
      • 旧版本高并发实验室
    • 开源项目部
      • 总览
      • Freqtrade 领域级重点实验室
      • HummingBot领域级重点实验室🚩
      • CCXT 领域级重点实验室🚩
        • CCXT文档
        • CCXT手册
      • AIOQuant 实验室
      • Peregrine 领域级重点实验室🚩
      • btrader实验室
      • js实验室1
      • 实验室2
      • py重点实验室
      • 以太坊部署实验室
    • 衍生产品部
    • 量化交易部
  • BFM Univ. | 比坊梦大学
    • 素白 · 密斯卡托尼克大学 🏫
    • Excel 教室
    • Power BI 教室
    • SPSS 教室
    • Python少儿编程教室 👩‍🏫
      • Python 办公自动化 OA
      • Python 金融 Finance
      • Python Project
    • 开发环境搭建教室 👨‍🏫 🚩
    • 文献与数据
    • 网络安全
    • MIS 系统开发
    • WEB 全栈开发
    • 企业战略分析
    • 基础财商教育
    • C#教室
    • 金融考试
    • 计算机考试
    • 发卡卡密交易平台
  • BFM Cult. | 比坊梦文化
    • 组织文化宣传
    • 设计
    • 组织文化
      • IT超度指南
      • 动漫
      • 漫画
      • 游戏
      • 01城密咒
      • 心理学
    • 风水玄学儒释道瑜伽占卜塔罗吸引力法则灵性修行
    • 【传媒】引起兴趣
  • 风控与合规
    • LICENCE:GNU GPL v3.0
  • 工具
    • SS/V2Ray 科学上网 ✈️
    • 华谷套件(Google Play商店)
    • AIGC
    • 文章论文生成器
    • 绘画生成器
    • AI 导航网站
    • 发现网站
    • B站视频下载 🎬 ⏬
  • 链接
    • 看板
    • 投资方法论
    • Github托管地址
    • 旧群文件
  • 回收站
    • 三角套利程序众筹(中止)
  • 比坊梦后勤部
    • 餐厅
    • 药店
    • 服饰店
    • 数码店
    • 钱包店
    • 家具店
Powered by GitBook
On this page
  • BFM Eco System Architecture Design
  • 1 Core
  • 2 Storage
  • 3 Application
  • 4 Protocol
  • 5 BFM Virtual Machine (BFM-VM)
  • 6 Decentralized Exchange (DEX) & Atomic Swap
  • 7 Implementation
  1. BFM R-Ins. | 比坊梦科学研究院
  2. 项目架构部

【架构】架构设计

BFM Eco System Architecture Design

Previous项目架构部Next【规划】发展路线

Last updated 1 year ago

BFM Unity 将基于 Hyperledger 的公链项目 Besu,

BFM Unity 将使用伊斯坦布尔拜占庭式容错(IBFT)作为共识算法。

BFM Eco System Architecture Design

BFM Eco System adopts a 3-layer architecture divided into Storage Layer, Core Layer, and Application Layer. The BFM protocol adheres to Google Protobuf, which intrinsically supports multi-language extension.

1 Core

There are several modules in the core layer, including smart contracts, account management, and consensus. A stack-based virtual machine is implemented on BFM and an optimized instruction set is used. In order to better support DApp developers, Solidity 4 was chosen as the smart contract language, followed by future support of other advanced languages. In addition, BFM's consensus mechanism is based on Delegated Proof of Stake (DPoS) and many innovations were made in order to meet its unique requirements.

2 Storage

BFM designed a unique distributed storage protocol consisting of Block Storage and State Storage. The notion of a graph database was introduced into the design of the storage layer to better meet the need for diversified data storage in the real world.

2.1 Blockchain Storage

BFM blockchain storage chooses to use LevelDB, which is developed by Google and proven successful with many companies and projects. It has high performance and supports arbitrary byte arrays as both keys and values, singular get, put and delete, batched put and delete, bi-directional iterators, and simple compression using the very fast Snappy algorithm.

2.2 State Storage

BFM has a KhaosDB in the full-node memory that can store all the newly forked chains generated within a certain period of time and supports witnesses to switch from their own active chain swiftly into a new main chain. It can also protect blockchain storage by making it more stable from being terminating abnormally in an intermediate state.

3 Application

4 Protocol

protocol adheres to Google Protocol Buffers 5 , which is a language-neutral, platform-neutral, and extensible way of serializing structured data for use in communications protocols, data storage, and more.

4.1 Protocol Buffers

Protocol Buffers (Protobuf) is a flexible, efficient, automated mechanism for serializing structured data, similar to JSON or XML, but much smaller, faster and simpler.

Protobuf (.proto) definitions can be used to generate code for C++, Java, C#, Python, Ruby, Golang Objective-C, and Verilog HDL languages through the official code generators. Various third-party implementations are also available for many other languages. Protobuf eases development for clients by unifying the API definitions and also optimizing data transfers. Clients can take the API .proto from BFM’s protocol repository and integrate through the automatically-generated code libraries.

As a comparison, Protocol Buffers is 3 to 10 times smaller and 20 to 100 times faster than XML, with less ambiguous syntax. Protobuf generates data access classes that are easier to use programmatically.

4.2 HTTP

BFM Protocol provides a websocket & RESTful HTTP API alternative to the Protobuf API. They share the same interface but the HTTP API can be readily used in javascript clients.

5 BFM Virtual Machine (BFM-VM)

The BFM-VM is a lightweight, Turing complete virtual machine developed for BFM’s ecosystem. The BFM-VM connects seamlessly with the existing development ecosystem to provide millions of global developers with a custom-built blockchain system that is efficient, convenient, stable, secure, and scalable.

6 Decentralized Exchange (DEX) & Atomic Swap

7 Implementation

Developers can create a diverse range of DApps and customized wallets on BFM. Since BFM enables smart contracts to be deployed and executed, the opportunities of utility applications are unlimited.Solidity official documentation:

Google Protocol Buffers official documentation:

The BFM blockchain code is implemented in Java and was originally a fork from EthereumJ. Bancor Protocol official website:

https://solidity.readthedocs.io/
https://developers.google.com/protocol-buffers/
https://about.bancor.network/protocol/
Hyperledger Besu – Hyperledger FoundationHyperledger Foundation
Istanbul Byzantine Fault Tolerance · Issue #650 · ethereum/EIPsGitHub
Atomic swap - Bitcoin Wiki
Komodo and the Early Pioneers of Atomic SwapsKomodo Platform Blog | En
Komodo Developer Documentationkomodoplatform
Logo
Logo
Logo
Logo
Logo