# Algorand

By [un.Block](https://paragraph.com/@un-block) · 2021-10-09

---

> Algorand 是一条速度快，不兼容 EVM，没啥生态的光秃秃链

这几个月 Algorand 频繁的出现在我的消息列表了，这一期我们就为大家介绍一下 Algorand。

Algorand 是由一名 MIT 教授在 2017 年所创建的。这位教授认为 Algorand 可以解决以太坊创始人 Vitalik 所提出的稳定性悖论，即扩展性，安全性，去中心化只能三者取其二。

**共识**
------

Algorand 采用 Pure Proof-of-Stake。网络参与者对产生下一个区块的影响力正比于他们所拥有的代币数量。他们拥有的代币数量越多，他们对下一个区块的影响力越大。所用拥有代币的用户都可以影响下一个区块的产出，并且代币并不需要质押进行锁定。

Algorand 的每秒处理速度大于1000笔交易，8400万交易/天，4秒一个区块，每笔交易手续费 $0.001。

作为比较，以太坊的TPS（Transactions Per Second）为 13，15 秒出一个区块。交易手续费高的离谱。

BSC 的 TPS 为55 - 60，5 秒一个区块。

宇宙最快区块链 Solana 的 TPS 为 6 万 5 千。800 毫秒一个区块。

POS 中常见的一种是 Delegate Proof of Stake（DPOS）。EOS 使用的便是 DPOS。在 EOS 网络中，并不是所有拥有代币的用户都可以影响区块的产出，而是只有 21 个用户可以决定区块的产出。这 21 个用户由所有用户投票产生。通过牺牲一定的去中心化程度，EOS 获得了更快的区块处理速度。

另一种常见的是 Bonded Proof-of-Stake（BPOS）。用户通过质押代币来获得对下一个区块的影响力。质押的代币将被锁住一段时间。在这段时间里，用户无法使用这些代币。

**生态**
------

Algorand 将自己定位为驱动传统金融和去中心化金融加速融合。根据 [_DeFi Lama_](https://link.zhihu.com/?target=https%3A//defillama.com/chains) 的数据，Algorand 的总锁仓量排第 32 位，锁仓金额为八千万美金。目前它的 DeFi 生态只有 [_Yiedly_](https://link.zhihu.com/?target=https%3A//yieldly.finance/)。在 Yieldly 的官网，它们介绍到 ”The world's first and only DeFi suite on Algorand“。Yieldly 包含存款，跨链交易，赌博。

![](https://storage.googleapis.com/papyrus_images/829e63b91a7ac1413c9561130df7d6690e56411f112649af46626f903b51bf43.jpg)

**⚙️ 开发**
---------

Alogrand 支持智能合约，提供 Python，JS，JAVA，GO 的 SDK。Algorand 使用 [_Algorand virtual machine (AVM)_](https://link.zhihu.com/?target=https%3A//developer.algorand.org/docs/get-details/dapps/avm/)。

Algorand 支持原生资产，即创建的资产和 Algo 享有同样的功能。从 Asset 的参数上，我们就能体会 Algorand 的定位了。Asset 拥有以下参数：

*   [_Creator_](https://link.zhihu.com/?target=https%3A//developer.algorand.org/docs/get-details/transactions/transactions%23creator) (required)
    
*   [_AssetName_](https://link.zhihu.com/?target=https%3A//developer.algorand.org/docs/get-details/transactions/transactions%23assetname) (optional, but recommended)
    
*   [_UnitName_](https://link.zhihu.com/?target=https%3A//developer.algorand.org/docs/get-details/transactions/transactions%23unitname) (optional, but recommended)
    
*   [_Total_](https://link.zhihu.com/?target=https%3A//developer.algorand.org/docs/get-details/transactions/transactions%23total) (required)
    
*   [_Decimals_](https://link.zhihu.com/?target=https%3A//developer.algorand.org/docs/get-details/transactions/transactions%23decimals) (required)
    
*   [_DefaultFrozen_](https://link.zhihu.com/?target=https%3A//developer.algorand.org/docs/get-details/transactions/transactions%23defaultfrozen) (required)
    
*   [_URL_](https://link.zhihu.com/?target=https%3A//developer.algorand.org/docs/get-details/transactions/transactions%23url) (optional)
    
*   [_MetaDataHash_](https://link.zhihu.com/?target=https%3A//developer.algorand.org/docs/get-details/transactions/transactions%23metadatahash) (optional)
    
*   [_Manager Address_](https://link.zhihu.com/?target=https%3A//developer.algorand.org/docs/get-details/transactions/transactions%23manageraddr)
    
*   [_Reserve Address_](https://link.zhihu.com/?target=https%3A//developer.algorand.org/docs/get-details/transactions/transactions%23reserveaddr)
    
*   [_Freeze Address_](https://link.zhihu.com/?target=https%3A//developer.algorand.org/docs/get-details/transactions/transactions%23freezeaddr)
    
*   [_Clawback Address_](https://link.zhihu.com/?target=https%3A//developer.algorand.org/docs/get-details/transactions/transactions%23clawbackaddr)
    

最后几个参数赋予对应地址管理 Asset 的能力。如果这些同样的资产出现在以太坊上，则可能会有中心化的问题。

Algorand 的合约分为 [_Stateful Contract_](https://link.zhihu.com/?target=https%3A//developer.algorand.org/docs/get-details/dapps/smart-contracts/%23smart-contracts) 和 [_Stateless Contract_](https://link.zhihu.com/?target=https%3A//developer.algorand.org/docs/get-details/dapps/smart-contracts/%23smart-signatures)。 Stateful Contract 就跟我们印象中的智能合约一样，拥有状态变量，处理 DApp 的主要逻辑。Stateless Contract 又叫 Smart Signature，用来为交易自动签名。Stateless Contract 可以用来管理账户资产，并且并不支持远程调用。

**相关阅读**
--------

*   [_Algorand’s pure Proof-of-Stake approach_](https://link.zhihu.com/?target=https%3A//www.algorand.com/technology/pure-proof-of-stake)
    
*   [_Smart Contract_](https://link.zhihu.com/?target=https%3A//developer.algorand.org/docs/get-details/dapps/smart-contracts/)

---

*Originally published on [un.Block](https://paragraph.com/@un-block/algorand)*
