LOADING...
LOADING...
LOADING...
当前位置: 玩币族首页 > 新闻观点 > STD-Chain——以太坊智能合约Solidity以及IPFS星际文件协议

STD-Chain——以太坊智能合约Solidity以及IPFS星际文件协议

2020-12-03 盛大公链 来源:区块链网络

马云曾在中央网信办主管媒体《网络传播》杂志发表署名文章,谈企业责任。文章中说:“好的企业,要用商业手法解决社会问题、推动社会发展,而不是寻找社会漏洞去发展。解决的社会问题越大,企业就越伟大。如果能为国家解决问题,那就是一个国家企业。”马云创建的阿里巴巴集团,将电商、物流、金融等各项业务做得十分出色,那么盛大公链是不是一个好项目?

Ma Yun once published a signed article in "network communication" magazine, which is in charge of the central network and information office, on corporate responsibility. "Good enterprises should use commercial methods to solve social problems and promote social development, rather than looking for social loopholes to develop," the article said. The bigger the social problems solved, the greater the enterprise. If it can solve the problem for the country, it is a national enterprise. " Alibaba group, founded by Ma Yun, has excelled in e-commerce, logistics, finance and other businesses. Is?STd—chain?a good project?

STD-Chain参考DPOS+BTF共识机制的优点,独创了POFProofoffaith(信仰证明机制)让STD-Chain网络能超高速运转,避免区块网络拥堵,安全高效的交易确认;此外,STD-Chain还通过兼容以太坊智能合约Solidity以及IPFS星际文件协议,来实现稳定,更具可扩展性以及更开放的区块链应用系统构建。

Referring to the advantages of dpos + BTF consensus mechanism, STD chain has created pofpooffaith (proof of belief mechanism) to enable the STD chain network to operate at ultra-high speed, avoid block network congestion, and secure and efficient transaction confirmation. In addition, STD chain is also compatible with Ethereum smart contract solidness and IPFs interstellar File Protocol to achieve stability, More scalable and more open blockchain application system construction.

以太坊智能合约Solidity

1.编写智能合约代码,并编译成字节码。

2.部署智能合约。过程是向“0”地址发送一笔带有智能合约字节码数据的交易,这个交易会生成该智能合约的地址,并将字节码存储在该地址下的状态树中。

3.执行智能合约(调用智能合约函数)。向智能合约地址发送一个交易,该交易携带被调用的智能合约函数信息及调用参数,携带的信息遵循ABI编码协议。

4.智能合约地址收到这样的调用合约函数的交易,首先会解码数据,根据结果查找到对应函数的入口,再传入参数执行该函数。

5.执行函数的过程是状态转换的过程,执行完成后会扣除调用者相应的Gas花费。

6.状态转换的过程会全网同步并被再次执行验证,确保执行结果一致,这样通过验证后的交易会记录到区块中,同时更新状态数据。

IPFS星际文件协议

IPFS(InterPlanetaryFileSystem,又称星际文件系统)是一种点对点的分布式文件系统,旨在连接所有有相同的文件系统的计算机设备。在某些方面,IPFS类似于web,但web是中心化的,而IPFS是一个单一的Bittorrent群集,用git仓库分布式存储。换句话说,IPFS提供了高吞吐量的内容寻址块存储模型,具有内容寻址的超链接。这形成了一个广义的MerkleDAG数据结构,可以用这个数据结构构建版本文件系统,区块链,甚至是永久性网站。IPFS结合了分布式哈希表,带有激励机制的块交换和自我认证命名空间。IPFS没有单故障点,节点不需要相互信任。

盛大公链在IPFS中存储和共享数据将内容添加到IPFS网络后,它会存放在哪里?

作为对等数据存储系统,IPFS允许每个用户(对等)在本地托管他们想要的任何数据。首次向IPFS添加新内容时,实际上只是在用户自己的计算机上以适合于通过IPFS协议共享的格式对其进行设置。通常,用户会在自己的计算机上安装IPFS,然后在该计算机上创建IPFS的新实例(也称为节点)。那就是用户的数据在本地存储的地方,由内容地址(CID)引用。IPFS中存储的数据可以采用多种形式,但是最常见的用例之一是传统文件的共享,我们将在后续中详细了解。

STd—chain stores and shares data in IPFs. After adding content to IPFs network, where will it be stored?

As a peer-to-peer data storage system, IPFs allows each user (peer) to host any data they want locally. When new content is added to IPFs for the first time, it is actually set up on the user's own computer in a format suitable for sharing through the IPFs protocol. Typically, users install IPFs on their own computer and then create a new instance (also known as a node) of IPFs on that computer. That's where the user's data is stored locally, referenced by the content address (CID). Data stored in IPFs can take many forms, but one of the most common use cases is the sharing of traditional files, which we will learn more about later.

换句话说,在盛大公链上,用户可以选择在建立网络连接后与对等方共享数据或文件,但是如果用户是唯一托管特定资源的人,则当用户的计算机脱机时,对等方将无法使用它。使多个同位体托管相同的文件可以使它们更容易使用,而使用CID(通过加密哈希算法创建的唯一内容标识符)则可以使该系统更安全。

In other words, on?STd—chain, users can choose to share data or files with peers after establishing a network connection, but if the user is the only one hosting a specific resource, the peer will not be able to use it when the user's computer is offline. Having multiple peers host the same file makes them easier to use, while using CID (a unique content identifier created by an encrypted hash algorithm) makes the system more secure.

盛大公链还允许企业将所有交易记录储存在共享的分类帐中。通过综合使用私有和公开区块链,受众企业能够追踪所有交易,并与市场分享相关数据。维护分类帐的责任将会由同业组织担负,审批基于全员同意。使用分布式分类帐系统可能会成为确定财务信息是否准确的标准操作。区块链技术同时能够使三式记账或“动态”会计成为可能,实时记录企业资产价值的变化,除了账面价值,还能就企业“市场”估值提供洞察。独立、无法篡改的记录能提高审计的准确性和审计频率,很可能成为利益相关方今后的期待。

能够为社会解决问题,能够为国家战略的布局奉献自己的力量,这就是盛大公链,我们的愿景是构建全球价值互联网,为各类价值传输应用提供基础区块链网络,支持各类实际应用以公有链、联盟链、私有链等形式落地。盛大公链,会与你一起探索区块链的价值,也在这个过程中,收获属于你的财富。

This is?STd—chain, which can solve problems for society and contribute to the layout of national strategy. Our vision is to build global value Internet, provide basic blockchain network for various value transmission applications, and support various practical applications to be implemented in the form of public chain, alliance chain and private chain.?STd—chain will explore the value of blockchain together with you, and in the process, harvest your wealth.

—-

编译者/作者:盛大公链

玩币族申明:玩币族作为开放的资讯翻译/分享平台,所提供的所有资讯仅代表作者个人观点,与玩币族平台立场无关,且不构成任何投资理财建议。文章版权归原作者所有。

LOADING...
LOADING...