使用比特币轻量钱包Electrum开发模式

资讯 2024-06-21 阅读:28 评论:0
美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

浏览器打开 https://electrum.org/#download 选择windwos版本的安装程序

Browser Opens https://electrum.org/#download  Select installation program for Windows version

 

 

 点击下载,并安装

& nbsp; click download and install

提示输入钱包名称

Hint Enter Wallet Name

 

 

 下一步:标准钱包

& nbsp; the next step: standard wallet

 

 

 创建一个新的密语种子

& nbsp; creating a new secret feed

 

 

 下一步,选择老式地址

& nbsp; the next step, select an old address

 

 

 记下密语种子

& nbsp; writing a secret feed

 

 

 下一步,再输入密语种子

& nbsp; next step, enter a secret feed

 

 

 

输入密码

Enter Password

 

 

 下一步,进入主界面

& nbsp; the next step, enter the main interface

 

 

 点击“地址”选项卡,里面已经创建了很多收款地址以及找零地址,都是以m开头的地址均为测试地址

& nbsp; click on the "Address" tab, which has created many collection addresses and zero addresses, all of which are test addresses starting with m

 

 

 显示余额都是零,下一步我们就为其中一个收款地址获取测试比特币

& nbsp; showing zero balances, next we get a test bitcoin for one of the collection addresses

Get BTC Testnet coin
We can get BTC test coin from BTC faucet websites, here are several available examples sites which we can get BTC test coins from:
 

浏览器打开https://kuttler.eu/en/bitcoin/btc/faucet/

Browser opens https://kuttler.eu/en/bitcoin/btc/aucet/

 

 

 发现使用了google的验证码服务,并且显示不出来图片,需要安装GOOGLE浏览器的一个gooreplacer插件,这个插件的功能用于将网页中的文件地址重定向至其他地址。

& nbsp; found to have used Google's authentication code service and unable to display pictures, requires the installation of a Gooreplacer plugin from the GOOGLE browser, which is used to redirect the file addresses in the web page to other addresses.

浏览器打开https://www.chromefor.com/gooreplacer_v3-10-0/

Browser opens https://www.chromefor.com/gooreplacer_v3-10-0/

一个浏览器插件下载网站,下载插件,要选择本网站下载

A browser plugin downloads the website, downloads the plugin, selects the site to download

 

 下载成功后,是一个.crx为后缀的文件

& nbsp; successfully downloaded is a.crx suffix file

 

 打开google浏览器,选择扩展程序,直接将文件拖入浏览器总,浏览器自动安装插件

& nbsp; open google browsers, select extension programs, drag files directly into browser totals, and automatically install plugins for browsers

 

 成功后,显示如下界面

After & nbsp; succeeds, display the following interfaces

 

 点击"add"添加一个地址重定向规则

& nbsp; click "add" to add an address redirection rule

 

 

也就是将提供验证码服务的www.google.com/recaptcha地址改为recaptcha.net/recaptcha,这样国内就可以访问了

That is, www.google.com/recaptcha to recaptcha.net/recaptcha, which will provide a certification service, so that it can be accessed in the country.

 

 

再打开测试币网站https://kuttler.eu/en/bitcoin/btc/faucet/

Reopening test currency website https://kuttler.eu/en/bitcoin/btc/aucet/

 

 已经成功显示出来了,然后输入我们的收款地址,通过验证后,获取

& nbsp; has been successfully displayed and then entered our collection address, and has been verified and obtained

  显示成功,回到Electrum界面,显示钱包地址已经有余额了

& nbsp; & nbsp; show success, go back to the Electrum interface and show that the wallet address is in balance

 

我们右键点击“地址”,选择“详细信息”,打开这个地址的详细信息界面

We click right on " Address ", select " Details ", open a detailed information interface for this address

 

 可以看到这个地址的公钥,以及交易历史记录,目前只有我们选择获取测试币的这笔记录,右键点击这条记录,选择“详细信息”,显示这笔交易的详细信息

& nbsp; you can see the public key to this address, as well as the history of the transaction, where only we currently choose to get this record of the test currency, right click on this record and choose " Details " to show details of the transaction

 

 本交易的HASH值、目前经过几个区块确认、被哪个区块打包的、交易的输入和输出

& nbsp; HASH values for this transaction, currently confirmed by several blocks, which block is packaged, input and output of the transaction

现在地址列表里复制一个收款地址,然后点击“发送”选项卡进入转账界面

Copy a collection address in the current address list and then click the Send tab into the Transfer Interface

 

 将复制的地址粘贴到支付给文本框里,作为收款人地址,金额随便填写小于你钱包余额的一个数字,费用既手续费,可以设置,手续费越高,那么被矿工及时打包上链的概率就越大,因为收付费是给矿工的

& nbsp; paste the duplicate address to the payment box as the payee's address and fill out a figure smaller than the balance of your wallet. The more the charge, the more expensive it is, the more likely it is that the miner will pack the chain in time, because the fee is paid to the miner.

我们点击“预览”

We're going to click on Preview.

 

bf3c198243b0d79d10594189daafaef053e9eb97e3a3061adafb2dfebe41c827:19 这个表示,交易的输入是我获取的测试币的那笔交易的ID:和输出的位置

bf3c 198243b0d79d 10594189d 1059489daafaef053e9e9b97e3a3061addafb2dfebe41c827:19  this means that the transaction was entered into the ID: and the location of the output of the transaction for which I obtained the test currency

输出里面为收款的地址以及找零的地址和金额。再点击“签名”,给这笔交易用自己的私钥签名,再点击“广播“

The output contains the address of the receipt and the location and amount of the change. Click on " Sign ", give the transaction your own private key and click on "Broadcast ".

 

 显示付款已经发送,并返回这笔交易的HASH,回到地址列表可以看到收款地址已经有了10比特币余额,找零地址转入了剩余的110比特币

& nbsp; shows that payment has been sent and returns to HASH for the transaction. Returning to the address list, it can be seen that the collection address has 10 bits of money in balance and finding a zero address has been transferred to the remaining 110 bits of currency.

 

 

 

 回到历史界面,此交易的记录已经显示,点击详细信息

& nbsp; reverting to the historical interface, the record of the transaction has been shown, clicking on details

 

 

 因为是转账到我自己钱包里的一个地址,所以这里显示的发送金额是0

& nbsp; as it was transferred to an address in my own wallet, the amount of delivery shown here is zero

我们还可以右键点击交易记录,选择“使用区块浏览器查看”,可以查看更详细的信息

We can also click right on the transaction log and select " Use block browser " to view more detailed information.

 

 点击DETAILS

& nbsp; click on DETAILS

 

 显示了本交易的输入和输出脚本。

& nbsp; displays input and output scripts for this transaction.

可以看到交易输入里有输入脚本,以及上一个交易的输出脚本,这笔交易在全节点的的验证过程为:先执行输入脚本,再执行上一个交易的输出脚本,来验证这笔交易有效性

You can see the input script in the transaction input, as well as the output script of the previous transaction, which is validated at the full node by executing the input script first and the output script of the previous transaction to verify the validity of the transaction

输入脚本

Enter Script

OP_PUSHBYTES_72 3045022100841e9bcc720fb3e689ee5ed19bda95c531a38e981e3c50c587c6c126acb084940220579fff024189bc73afe5b2ddcf2194685ea1025fba16fd95fa7af155fe90927c01
OP_PUSHBYTES_33 03ffeeb710d76f6bf11c6534749f1407da6805be63697bff919995b7db2c6a8c32

上一个交易输出脚本

Previous transaction output script

OP_DUP
OP_HASH160
OP_PUSHBYTES_20 9c88615abc0525dca340f038a3f3b7b5bfe05fd3
OP_EQUALVERIFY
OP_CHECKSIG

执行过程为:

The implementation process is as follows:

OP_PUSHBYTES_72 3045022100841e9bcc720fb3e689ee5ed19bda95c531a38e981e3c50c587c6c126acb084940220579fff024189bc73afe5b2ddcf2194685ea1025fba16fd95fa7af155fe90927c01:将用私钥签名的信息入栈

OP_PUSHBYTES_72304522100841e9bcc720bc3e689ee5ed19bda95c531a38e981e3c50c587c6c126acb084040205779ffffffff4189bc5b2df2df2194685ea1025fba16fd95fa7f155fe90927c01: enter information signed with a private key

OP_PUSHBYTES_33 03ffeeb710d76f6bf11c6534749f1407da6805be63697bff919995b7db2c6a8c32:将公钥入栈

OP_PUSHBYTES_33  03ffeeb710d76f6bf11c653474f1407da6805be63697bff919995b7db2c6a8c32: Put Public Keys in Bank

OP_DUP :复制一个栈顶元素,并入栈

OP_DUP: Copy a top element and merge into a store

 

 

OP_HASH160:弹出栈顶元素,并作hash160运算 H(Public Key),得到账户地址,并入栈

OP_HASH160: Ejects top elements and performs shash160 operation & nbsp; H (Public Key), gets account address, merges with warehouse

 

 

OP_PUSHBYTES_20 9c88615abc0525dca340f038a3f3b7b5bfe05fd3 :将收款账户的公钥HASH既收款账户地址入栈。

OP_PUSHBYTES_20 9c88615abc0525dca 340f038a3f3b7b5bfe05fd3 : to store the address of the public key HASH account.

 

 OP_EQUALVERIFY:弹出栈顶两个元素,并比较他们是否相等,也就是验证付款方账户是否正确,确实是上一个交易的收款方,此时栈内只剩下了付款方公钥以及付款方私钥的签名

& nbsp; OP_EQUALVERIFY: Ejects the top two elements and compares them to whether they are equal, i.e. to verify that the account of the payer is correct and is indeed the recipient of the previous transaction, where only the public key of the payer and the signature of the private key of the payer are left.

 

 OP_CHECKSIG:弹出栈顶两个元素,用公钥进行验签。整个验证交易过程结束。

& nbsp; OP_CHECKSIG: Two elements of the roof are ejected, and the public key is used to verify the transaction.

 

 

 

 转载自:https://www.cnblogs.com/sky-cheng/p/11972128.html

& nbsp; reproduced from https://www.cnblogs.com/sky-cheng/p/172128.html

友情链接:神牛网络,神牛活码

Friendship links: ,

 

美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址
文字格式和图片示例

注册有任何问题请添加 微信:MVIP619 拉你进入群

弹窗与图片大小一致 文章转载注明

分享:

扫一扫在手机阅读、分享本文

发表评论
平台列表
美化布局示例

欧易(OKX)

  全球官网 大陆官网

币安(Binance)

  官网

火币(HTX)

  官网

Gate.io

  官网

Bitget

  官网

deepcoin

  官网
热门文章
  • 0.00003374个比特币等于多少人民币/美金

    0.00003374个比特币等于多少人民币/美金
    0.00003374比特币等于多少人民币?根据比特币对人民币的最新汇率,0.00003374比特币等于2.2826 1222美元/16.5261124728人民币。比特币(BTC)美元(USDT)人民币(CNY)0.00003374克洛克-0/22216.5261124728比特币对人民币的最新汇率为:489807.72 CNY(1比特币=489807.72人民币)(1美元=7.24人民币)(0.00003374USDT=0.0002442776 CNY)。汇率更新于2024...
  • 134 USD toBTC Calculator -

    134                            USD                        toBTC                        Calculator -
    For the week (7 days) Date Day 134 USD to BTC Changes Changes % June...
  • 0.00006694个比特币等于多少人民币/美金

    0.00006694个比特币等于多少人民币/美金
    0.00006694比特币等于多少人民币?根据比特币对人民币的最新汇率,0.00006694比特币等于4.53424784美元/32.5436 16人民币。比特币(BTC)美元(USDT)人民币(CNY)0.000066944.53424784【比特币密码】32.82795436 16比特币对人民币的最新汇率为:490408.64 CNY(1比特币=490408.64人民币)(1美元=7.24人民币)(0.00006694USDT=0.0004846456 CNY)汇率更新时...
  • 12年怎么购买比特币?比特币投资,轻松掌控

    12年怎么购买比特币?比特币投资,轻松掌控
    12年怎么购买比特币?买卖比特币可以通过以下交易所进行购买,分别是:欧易官网平台、ZG交易所、艾戴克斯交易所、C2CX交易软件、BaseFEX交易APP、波网交易平台、安银交易所、BitMart交易软件、紫牛币交所交易APP和澳网(AOMEX)交易平台等等十大平台下载,高效安全的数字货币交易平台。How do you buy bitcoins in 12 years? Bitcoins can be purchased through ten major platforms...
  • 0.00015693个比特币等于多少人民币/美金

    0.00015693个比特币等于多少人民币/美金
    0.000 15693比特币等于多少人民币?根据比特币对人民币的最新汇率,0.000 15693比特币等于10.6 1678529美元/76.86554996人民币。比特币(BTC)【比特币价格翻倍】美元(USDT)人民币(CNY)0.000/克洛克-0/5693【数字货币矿机】10.6 167852976.8655254996比特币对人民币的最新汇率为:489,807.72 CNY(1比特币= 489,807.72人民币)(1美元=7.24人民币)(0.00015693 U...
标签列表