15

java源码示例 解析bitcoin助记词(或私钥),支持3种地址格式,与tokenpocket和imtoke...

 2 years ago
source link: http://www.blogjava.net/fangw/archive/2021/12/13/436085.html
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.

java源码示例 解析bitcoin助记词(或私钥),支持3种地址格式,与tokenpocket和imtoken一致

方伟的博客 j2ee技术、网络、web等,同名的人真多,我的QQ是20025404

posts - 21,comments - 14,trackbacks - 0

java源码示例,bitcoin解析助记词(或私钥):
1.BIP44,P2PKH,xpub
即1开头的地址。

2.BIP49,P2SH-P2WPKH,ypub
即3开头的地址。

3.BIP84,P2WPKH,zpub
即bc1开头的地址。

网上代码大都只能正常获取1开头和bc1开头的地址,但3开头的地址大部分参考算法都是错的。
这个示例是跟tokenpocket和imtoken对比过都一致的。
posted on 2021-12-13 17:32 方伟的博客 阅读(16) 评论(0)  编辑  收藏 所属分类: it生涯区块链

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK