区块链能养猫养狗了?!手把手带你复现AI+区块链写码全过程!(附代码)
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">这里是,油管Artificial Intelligence Education专栏,原作者Siraj Raval授权雷锋字幕组编译。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">原标题 Blockchain Consensus Algorithms and Artificial Intelligence</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">翻译 | 彭艳蕾 付腾 崔跃辉 熊若鑫 字幕 | 凡江 整理 | 吴璇</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">比特币的剧烈震荡,引起全民关注,加快了区块链的普及速度。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">区块链养猫养狗、区块链游戏、区块链游戏,区块链旅游……打着区块链名头的项目蜂拥上线。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">如何将区块链和AI两种不同技术结合?如何在python中编写工作证明算法?一致性算法有哪些?</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">雷锋字幕组特别编译了本期 「区块链一致性算法和人工智能」(下),从技术算法层面解读大家的疑惑,手把手教你创建自己的AI+Blockchain启动项目。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">在这个视频中,我们重点讨论AI+BlockChain如何一起工作,如何在python中编写工作证明算法,然后在高层次上讨论一些其他的共识算法。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">人工智能可以利用区块链的力量对数据进行审计,对其目标进行激励,甚至创造新型的精英组织。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">下面用图文给大家简单介绍视频中所提到的四种算法:</p><img src="https://p3-sign.toutiaoimg.com/65bb00097f6cc8eae7bd~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1713686373&x-signature=2ptsfZF%2Bah1%2BUeiUUskJDOBJyl0%3D" style="width: 100%; margin-bottom: 20px;"><img src="https://p3-sign.toutiaoimg.com/65b90014be2b17445b64~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1713686373&x-signature=egExuEeBnBtUSROl7lWf9poa1So%3D" style="width: 100%; margin-bottom: 20px;"><img src="https://p3-sign.toutiaoimg.com/65b80014e7c7bb8a3ca4~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1713686373&x-signature=Fb9Yol20q8esMUtXPT7dTS34DR0%3D" style="width: 100%; margin-bottom: 20px;"><img src="https://p3-sign.toutiaoimg.com/65bb00097f6db68cb453~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1713686373&x-signature=ETl89RvCQZJR2HXg1bQm9V3HpsY%3D" style="width: 100%; margin-bottom: 20px;">
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">币圈所用的Consensus Algorithms(分布式一致性算法)主要有Proof of work (工作证明)算法和Proof of Stake(权益证明)算法两种。 </p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">Proof of work(工作证明)</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">比特币交易的运行原理就是Proof of work,我们有网络上所有交易的分布式账本,在每个矿工的计算机上都存有一个副本,一旦涉及确认交易时,他们都必须提供这个Proof of work,他们已经计算出这个随机数学问题,只有这样做才能对交易进行确认。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">比特币的运作步骤是:交易验证→生成代码→周知其它矿工→如果大部分人都同意,交易将添加至区块链。矿工能挖到矿的概率取决于矿工做了多少工作,所以我们看到,比特币矿工的支出变得越来越小,矿工们会因为比特币供应量有限而加班减薪。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">Proof of stake(权益证明)</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">Proof of stake的原理则是,一个人的能力无关工作能力,而取决于他有多少币,拥有的币越多投票权越大;交易系统能够让51%以上的攻击成本变高;大部分的矿工都在努力采矿,以扩大比特币社区,但是比特币却集中在越来越少的人手里。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">任何人都可以通过发送,一种特殊类型的交易来锁定手持币成为存款,然后通过所有当前验证者可以参与的一致性算法,来完成和同意新区块的建立。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">Proof of Activity(活动证明)</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">活动证明作为一种Proof of work和Proof of stake的混合证明,它一开始作为Proof of work,所有矿工都试图解决这个数学问题。一旦有一桩成功的交易,它将切换到权益证明,然后设置验证器来标记这个新的区块。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">Proof of Burn(焚烧证明)</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">这种证明算法不会在昂贵的计算机设备上烧钱,而是把币送到一个不能复原的地址上。一旦你把币丢去这里,那就永远赎不回来了。你可以通过随机选择过程获得永久权限,以便能够在系统上挖掘。随着时间的推移,你在系统中的权益会衰减,最后你会想要烧掉更多的币来增加中奖几率。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">关于区块链的代码全过程,请观看本篇视频。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">开源代码 </p>https://github.com/llSourcell/blockchain_consensus
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">视频原址 </p>https://www.youtube.com/watch?v=5Tr13l0O1Ws&t=8s
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">更多文章,关注雷锋网 雷锋网雷锋网</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">添加雷锋字幕组微信号(leiphonefansub)为好友</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">备注「我要加入」,To be a AI Volunteer !雷锋网 雷锋网(公众号:雷锋网)</p><img src="https://p3-sign.toutiaoimg.com/65bd00090f3c874b52a2~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1713686373&x-signature=RgNExrDekvAtol54JC5AQGy5qX4%3D" style="width: 100%; margin-bottom: 20px;"><img src="https://p3-sign.toutiaoimg.com/65b90014be2dbf556702~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1713686373&x-signature=iMLcwKRBaOSO6iia4dcXa5XKfuI%3D" style="width: 100%; margin-bottom: 20px;"><img src="https://p3-sign.toutiaoimg.com/65ba0014b4a401ad4ed3~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1713686373&x-signature=lI7vEl5NVSgDshRnzBS%2B7GMyM%2FA%3D" style="width: 100%; margin-bottom: 20px;"><img src="https://p3-sign.toutiaoimg.com/65bd00090f3d0f736bae~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1713686373&x-signature=hpnpYxztegcMPdab4qEWoufppy0%3D" style="width: 100%; margin-bottom: 20px;">
页:
[1]