CryptoCustodian 发表于 2024-6-21 14:29:28

区块链小课堂 | 第五课:钱包,区块链世界的通行证


    <div style="text-align: left; margin-bottom: 10px;">
      <div style="text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/98a872dcd93646ab94cbc01e011fc638~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1718440916&amp;x-signature=eJ%2BbnOIt2uoCAKkw6Alxo55p%2Fko%3D" style="width: 100%; margin-bottom: 20px;"></div>
      <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">在 仓舟小课堂 | 第一课:真假区块链 里我们提到过,一个真区块链有一个显著的特征:区块链钱包。</p><strong style="color: blue;">那么什么才是区块链钱包呢?</strong>
      <div style="text-align: left; margin-bottom: 10px;"><img src="https://p26-sign.toutiaoimg.com/pgc-image/130b5d3ba6d2477e87c880792bc2e97d~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1718440916&amp;x-signature=dnILV3KKQw%2BK7bZVr7j28b0shbo%3D" style="width: 100%; margin-bottom: 20px;"></div>
      <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;"><strong style="color: blue;">加密货币的蓬勃发展,也发展出了不同类型的钱包,以因应各种的使用情境。</strong></p>
      <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><strong style="color: blue;">全节点钱包</strong></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;"><strong style="color: blue;">SPV钱包(又名轻钱包)</strong></p>
      <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">此种钱包仅存储私钥与结算,不存储整个区块链,所以占用资源很少,较适用于移动设备。 在线钱包(不保管私钥):一般设计为网页形式,在网站产生私钥后,由个人保管,日后要访问钱包时必须输入私钥,网站不负责替用户保存。使用概念上类似于SPV钱包的网页版。使用此类网站,应挑选有信誉的品牌,以及注意是否为仿冒的钓鱼网站。</p>
      <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">说了这么多,其实现在市面上可供选择的区块链钱包非常之多,而钱包需要三个基本元素:<strong style="color: blue;">私钥,公钥,地址</strong>。</p>
      <div style="text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/74fad6a4247041e3813b839b38113d6e~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1718440916&amp;x-signature=fkd0V2IChFGEViNWLQ85Wckrzv0%3D" style="width: 100%; margin-bottom: 20px;"></div>
      <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">那么区块链钱包里<strong style="color: blue;">最重要</strong>的元素是什么呢?</p>
      <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">答案便是<strong style="color: blue;">私钥</strong></p>
      <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><strong style="color: blue;">私钥简单来说就是你家保险库的钥匙,这是区块链世界的黄金法则。</strong></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;">这也是为什么<strong style="color: blue;">钱包没有找回密码功能</strong>,这是为了保证绝对的安全,从设计上杜绝了被破解的可能。</p>
      <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">如果一旦丢失了私钥、或是误将数字货币发送到错误的地址,<strong style="color: blue;">以现今的技术,几乎不可能再把数字货币取回来</strong>,而这一批数字货币也相当于被消灭了。</p>
      <div style="text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/f408374fc71344bab67f91b955cb388c~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1718440916&amp;x-signature=r0VaGXiGqinVmVg%2BJrib7A76lTA%3D" style="width: 100%; margin-bottom: 20px;"></div>
      <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;">随着时代的发展,和私钥起了同样作用的<strong style="color: blue;">助记词</strong>也应运而生。由于私钥过于繁琐,没有可读性,区块链工程师利用算法,将私钥转换成常见的英文单词,这样便构成了助记词。<strong style="color: blue;">助记词就等于私钥,是私钥的另外一种形式存在</strong>。</p>
      <div style="text-align: left; margin-bottom: 10px;"><img src="https://p6-sign.toutiaoimg.com/pgc-image/8b0a68f7b21e4f2e9233cbda6d741d47~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1718440916&amp;x-signature=vS5aiHFnwPG9gSR1AML%2BB5yEKv0%3D" style="width: 100%; margin-bottom: 20px;"></div>
      <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><strong style="color: blue;">区块链钱包意味着安全</strong>,掌握了私钥或者助记词的你一定要好好保存,多作几个备份,守护好自己的财产。</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;"><strong style="color: blue;">比特币体系的钱包地址</strong>:</p>
      <div style="text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/a9b1945876544ebcadaba8f5a970b570~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1718440916&amp;x-signature=0jg%2BVep2F06Z7q%2FuyymlJp37RrI%3D" style="width: 100%; margin-bottom: 20px;"></div>
      <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">•BASE58格式:由1开头,也是最常见的钱包地址;•HASH160格式:通常由字母开头,由RIPEMD160算法对130位公钥的SHA256签名进行计算;•WIF压缩格式:通常由数字开头,BASE58格式压缩后的结果130位公钥格式;•60位公钥格式:通常由连续的数字开头,130位公钥进行压缩后的结果;</p>
      <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><strong style="color: blue;">以太坊体系的钱包地址</strong>:</p>
      <div style="text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/23a6fe553e974fc587791ec45b7709ab~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1718440916&amp;x-signature=od3GWP%2FT0yCJLbaVY2krixuiQ2Y%3D" style="width: 100%; margin-bottom: 20px;"></div>
      <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">•ERC20协议,一般都是0x开头,0x在计算机里就是16进制的意思;•所有兼容 ERC20 Token 协议的数字货币都可以放在同一个钱包,同一个地址可以显示不同的 Token;</p>
      <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><strong style="color: blue;">USDT种类的不同</strong>:</p>
      <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">USDT为美元的等值数字货币,俗称「稳定币」,但存在一定风险,<strong style="color: blue;">不建议大量持有</strong>。</p>
      <div style="text-align: left; margin-bottom: 10px;"><img src="https://p26-sign.toutiaoimg.com/pgc-image/91d09bf59e9744c399d6230792bcc7fa~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1718440916&amp;x-signature=1f3Fy7Rct3nq3DEWBO5qUmijl%2F8%3D" style="width: 100%; margin-bottom: 20px;"></div>
      <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">图片来源:Chepicap</p>
      <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">USDT 有两种协议代币,一种是基于 Omni Layer 发行的,一种是以太坊 ERC-20 代币。</p>
      <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">基于 Omni Layer 发行的 USDT 代币,是在比特币基础上通过 Omni layer 实现的。它的交易确认等参数与比特币是一致的,转账速度较慢,<strong style="color: blue;">地址以 1 开头</strong>。</p>
      <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">基于以太坊发行的 ERC-20 USDT 代币,与基于比特币网络的 USDT 等价。交易确认时间与 ETH 一致,转账速度较快,<strong style="color: blue;">地址以 0x开头</strong>。</p>
      <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">两种 USDT 不互通,<strong style="color: blue;">无法互相充值,无法叠加余额</strong>,一定要分清个人拥有的USDT 的种类。</p>
    </div>


页: [1]
查看完整版本: 区块链小课堂 | 第五课:钱包,区块链世界的通行证