Difference between revisions of "Chain"

From wiki.cellframe.net
Jump to navigation Jump to search
Line 2: Line 2:
  
 
General idea is to make abstraction level for common usage of DAG, Blockchain and No-Chain mode.
 
General idea is to make abstraction level for common usage of DAG, Blockchain and No-Chain mode.
In the code its present pseudo object dap_chain_t that holds all the abstractions.
+
In the code its present pseudo object *dap_chain_t* that holds all the abstractions.
  
 
== Chain structure: atoms, organization ==
 
== Chain structure: atoms, organization ==
  
Chain consists from atomic chain elements - Chain atoms. Atom is only abstraction: it could be block, event or just id for database record.
+
Chain consists from atomic chain elements - chain ''atoms''. ''Atom'' is only abstraction: it could be [[chain_block|block]], [[chain_event|event]] or just id for database record for no-chain storage.
An atom could hold inside one or more [[ datum| datums ]] - custom data that stores in chain. It could be [[tx|transaction]], [[chain_ca|certificate]], [[smart_contract|smart contract]], [[token_decl| token declaration]], [[token_emission| token emission]] or any another custom data.
+
An atom could hold inside one or more [[datum| datums ]] - custom data that stores in chain. It could be [[tx|transaction]], [[chain_ca|certificate]], [[smart_contract|smart contract]], [[token_decl| token declaration]], [[token_emission| token emission]] or any another custom data.
  
 
== Cells, Network, Chains ==
 
== Cells, Network, Chains ==
 
Chain itself could be [[Cellframe_cell|celled]] (sharded) or non-celled. So it could be single set of consistent data or lot of them.
 
Chain itself could be [[Cellframe_cell|celled]] (sharded) or non-celled. So it could be single set of consistent data or lot of them.
Keep in mind: cell is not part of the Chain. Its part of the network. Chain could be or not to be associated with cell. For CellFrame Network and CellFrame Chain the cell its just kind of id thats used for breaking down the network on independent segemnts thats has its own datasets - chains, [[gdb | whitelist (GDB - GlobalDB) ], [[mempool| mempools ]]
+
Keep in mind: cell is not part of the Chain. Its part of the [[chain_network|network]]. Chain could be or not to be associated with cell. For [[chain_network|CellFrame Network]] and [[chain|CellFrame Chain]] the cell its just kind of id thats used for breaking down the network on independent segemnts thats has its own datasets - chains, [[gdb | whitelist (GDB - GlobalDB) ], [[mempool| mempools ]]

Revision as of 12:38, 29 September 2019

Cellframe Chains

General idea is to make abstraction level for common usage of DAG, Blockchain and No-Chain mode. In the code its present pseudo object *dap_chain_t* that holds all the abstractions.

Chain structure: atoms, organization

Chain consists from atomic chain elements - chain atoms. Atom is only abstraction: it could be block, event or just id for database record for no-chain storage. An atom could hold inside one or more datums - custom data that stores in chain. It could be transaction, certificate, smart contract, token declaration, token emission or any another custom data.

Cells, Network, Chains

Chain itself could be celled (sharded) or non-celled. So it could be single set of consistent data or lot of them. Keep in mind: cell is not part of the Chain. Its part of the network. Chain could be or not to be associated with cell. For CellFrame Network and CellFrame Chain the cell its just kind of id thats used for breaking down the network on independent segemnts thats has its own datasets - chains, [[gdb | whitelist (GDB - GlobalDB) ], mempools