{"author":{"address":null,"user":"https://learnblockchain.cn/people/808"},"content":{"body":"![image.png](https://img.learnblockchain.cn/attachments/2024/08/oJfvPgP466cee0e824e7a.png)\r\n在没有shard的情况下，operator会把所有的bundle都发送给consensus node，elected farmers（这里指代有算力的node）会verify bundle（当作一个transaction处理），通过验证的bundle发送到tx pool等待打包成block；因为把bundle当作普通的一个tx处理，所以会把bundle通过广播发送给所有的consensus node；\r\n当包含bundle交易，转账交易等等交易的conesnus block的超过了100M的时候，就会进行一次segment 生成（官方称之为archiving）；生成的segment也会组成一条链式结构来存储；\r\nnew segment生成时，链接conensus node的farmer会拿这个segment作为源piece来做封装；\r\n流程概括如下：\r\ndomain tx -\u003e bundle tx -\u003e consensus block -\u003e segment -\u003e ploted；\r\nfarmer进行封装时，数据有好两个来源：consensu node，dsn（就是farmer组成的分布式存储网络）；\r\n\r\n\r\n分片以后，计算的执行和domain的状态数据还是在domain自身，不会有任何的扩展；\r\n\r\nfarmer的算力是无状态的，可以给任何beneficial address提供算力，所以autonomys里面farmer 的公私钥才是矿工的账户，只是它可以决定把收益打到哪一个beneficial address；所以autonomys的farmer公司钥和filecoin的miner是一个级别的，只是filecoin的miner的owner公私钥是最重要的信息，而autonomys的farmer对应的公私钥不跟token相关，所以相对来说不是那么重要；\r\n\r\n根据随机算法把farmer分到不同的data shard和consensus network；consensu network的链结构会记录每个farmer属于那个shard；\r\n\r\noperator会提交bundle到shard，并把bundle的header提交给consensus network；shard的farmer验证bundle，通过后签名发送给operator，operator对签名进行聚合，然后发送给consensus 网络进行上链；\r\n这个时候只有shard里面farmer会有某个bundle；而分片前，bundle需要在所有的farmer之间进行广播和验证，所以分片后，会节省这些验证的时间和广播的时间；\r\n\r\n如何解决farmer在不同的slot被分配在不同的shard里面，从而导致的数据问题呐？实现的方式就是stateless；具体实现如下：\r\narchiving的流程差不多，都是等consensus 的block高度过了100个高度以后，每个shard都会根据自己的budle产生自己的segement，segment分片前一样，会生成segment 链结构；\r\n\r\n【Pre-plotting, plotting, and sector expiration remain the same as in Dilithium. Farmers on all shards plot pieces of the global history】也就是说P盘的时候，任何一个farmer都会从全部的shards里面获取segment是piece进行存储；可以把存储想象成一个共有的，全局的大存储池，不在分shard；从而达到stateless；\r\n\r\n【The initial concept is that farmers within a shard know each other. This way, when a farmer joins the system, the domain operators, by maintaining a DHT, can assist the newly joined farmer in connecting with the necessary peers.】在p2p上面，分片会比不分片的时候，要求多一些，需要让farmer 的peer知道彼此；","title":"Autonomys Network 真正的去中化存储计算一体网络"},"history":null,"timestamp":1724927876,"version":1}