xledger/

directory
v0.0.0-...-56f3d1a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: Apache-2.0

README

xuperledger

考虑到交易池、状态机、账本强相关,把交易池、状态机、账本统一归到账本组件提供。

考虑到账本实现和交易结构、区块结构是强相关的,限定了交易结构、区块结构 基本也就意味着限制了账本组件的实现,基本就没有扩展的必要了。

考虑到框架整体的可扩展性,账本组件只抽象定义合约和共识依赖接口规范。 不做账本其他结构和接口约束,由具体账本实现自由定义。

区块链执行引擎和账本组件绑定,不同区块链执行引擎可以选择绑定不同的账本组件。

数据模型

状态机:
  1. 未确认交易表。

  2. UTXO表。

  3. xmodel数据表。

  4. xmodel历史版本表(只用于删除时保留入口)。

  5. 状态机元信息表。

  6. 其他存储(共识、提案等,可以下线了)。

账本:
  1. 已确认交易表。

  2. 区块表。

  3. 区块高度表。

  4. 区块高度反向索引表。

  5. 区块链元信息表。

  6. 临时区块表(可以下线了)。

Directories

Path Synopsis
统一定义状态机对外暴露功能
统一定义状态机对外暴露功能
utxo
Package utxo is the key part of XuperChain, this module keeps all Unspent Transaction Outputs.
Package utxo is the key part of XuperChain, this module keeps all Unspent Transaction Outputs.
package txn deals with tx data
package txn deals with tx data

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL