[英]Modelisation of a blockchain
I would like to model a blockchain in UML.我想在 UML 中建模区块链。 Here are the requirements that I came up with:
以下是我提出的要求:
Here my UML class diagram:这是我的 UML 类图:
Since I am new to the blockchain technology, I would like to know: is this diagram correct?由于我是区块链技术的新手,我想知道:这个图是否正确? Did I miss something?
我错过了什么?
I'm not a blockchain expert.我不是区块链专家。 However, I can give you feedback on your diagram:
但是,我可以就你的图表给你反馈:
Owner
and Contact
are Users
(Specialization) Owner
和Contact
是Users
(专业化)Users
are organized in a hierarchy (One to many relation between users). Users
按层次结构组织(用户之间的一对多关系)。 I'm not sure that this is your intent.Owner
can have several Contacts
.Owner
可以有几个Contacts
。Money
is: is it a all the money a user have ?Money
是什么:它是用户拥有的全部资金吗? Or is it a blockchain entry (transaction) ?Bank Account
.Bank Account
。 Not sure it's your intent.Wallet
doesn't have a User
or an Owner
? Wallet
没有User
或Owner
是否正常? In addition, I miss the following basic elements of the technology: the block, the chain fo blocks, the (decentralised) ledger(s), and the transactions ?此外,我错过了该技术的以下基本要素:区块、区块链、(去中心化的)账本和交易?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.