go-bip39:Go的BIP39库

时间:2024-02-18 12:11:13
【文件属性】:

文件名称:go-bip39:Go的BIP39库

文件大小:170KB

文件格式:ZIP

更新时间:2024-02-18 12:11:13

go cryptography bitcoin mnemonic bip39

例 package main import ( "fmt" "github.com/tyler-smith/go-bip39" "github.com/tyler-smith/go-bip32" ) func main (){ // Generate a mnemonic for memorization or user-friendly seeds entropy , _ := bip39 . NewEntropy ( 256 ) mnemonic , _ := bip39 . NewMnemonic ( entropy ) // Generate a Bip32 HD wallet for the mnemonic and a user supplied password seed := bip39 . NewSeed ( mnemonic , "Secret Passphrase" ) masterKey , _ := bip32 . NewMasterKey ( seed ) publicKey := masterKey . Public


【文件预览】:
go-bip39-master
----.github()
--------workflows()
----assets()
--------images()
----example_test.go(1KB)
----LICENSE(1KB)
----wordlists()
--------english.go(13KB)
--------spanish.go(14KB)
--------chinese_simplified.go(9KB)
--------korean.go(38KB)
--------italian.go(16KB)
--------japanese.go(26KB)
--------chinese_traditional.go(9KB)
--------french.go(17KB)
--------czech.go(15KB)
----bip39.go(10KB)
----.gitignore(56B)
----.golangci.yml(1KB)
----Makefile(518B)
----go.sum(974B)
----bip39_test.go(19KB)
----README.md(2KB)
----go.mod(181B)

网友评论