40

Bytom Kit开发辅助工具介绍

 5 years ago
source link: https://studygolang.com/articles/20043?amp%3Butm_medium=referral
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

bVbrThp?w=1920&h=1280

Bytom Kit是一款为了帮助开发者更简单地理解Bytom的开发辅助工具,集合了校验、标注、解码、测试水龙头等功能。

该工具用python语言封装了一套比原的API和7个工具方法,如果有开发需求可以在项目的readme.md文件中查看使用方法。项目源码地址: https://github.com/Bytom/byto...

下面具体看一下各个工具的使用方法:

Key

链接: https://blockmeta.com/tools/key

bVbrThv?w=1186&h=706

Key页面显示了熵(Entropy)、助记词(Mnemonics)、随机数(Seed)、派生私钥(Root Expanded Private Key)、派生公钥(Root Expanded Public Key),以及一个私钥的二维码。这一功能可以创建新的私钥key。

Address

链接: https://blockmeta.com/tools/a...

bVbrThE?w=1197&h=886

地址页面主要创建新地址,页面显示了派生公钥(Expanded Public Key),账户索引(Account Index)、地址索引(Address Index)、更改标记(Change)、网络(Network)、地址路径(Address Path)、智能合约(Control Program)、地址(Address)、以及一个私钥的二维码。这一页面可以创建一个新地址。

Sign

地址: https://blockmeta.com/tools/sign

bVbrThI?w=1191&h=647

这个页面显示了派生私钥(Expanded Private Key)、消息(Message)、签名(Signature)。这一页面可以使用地址的密钥(私钥)对信息进行签名,输入私钥和信息内容,点击 Sign Message 可生成签名(Signature)。

Verify

地址: https://blockmeta.com/tools/v...

bVbrThP?w=1192&h=647

在这一页面,你可以通过输入公钥(Expanded Private Key)、信息(Message)、签名(Signature),、消息、签名。点击 Verify Signature ,可返回验证结果。

地址 Submit Transaction

链接: https://blockmeta.com/tools/txs

bVbrThR?w=1187&h=644

输入已经签名好的交易编码,点击 Submit Transaction 即可提交交易。

地址 Decode Raw Transaction

链接: https://blockmeta.com/tools/d...

bVbrThV?w=1192&h=928

输入已经签名好的交易(Raw Transaction),点击 Decode Transaction 可解码交易为十六进制字符串为json对象。

Testnet Faucet

链接: https://blockmeta.com/tools/f...

bVbrTh1?w=1192&h=644

比原水龙头工具接口,开发者可以使用该工具接口领取比原测试Token。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK