Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pantani/pool-party
Multi-coin address pool generation for bip44.
https://github.com/pantani/pool-party
address-pool bip39 bip44 bitcoin ethereum hd hdwallet wallet
Last synced: about 7 hours ago
JSON representation
Multi-coin address pool generation for bip44.
- Host: GitHub
- URL: https://github.com/pantani/pool-party
- Owner: Pantani
- License: mit
- Created: 2020-03-29T00:39:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-26T01:34:34.000Z (over 3 years ago)
- Last Synced: 2024-06-21T18:46:50.332Z (5 months ago)
- Topics: address-pool, bip39, bip44, bitcoin, ethereum, hd, hdwallet, wallet
- Language: Go
- Homepage:
- Size: 65.4 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Go Reference](https://pkg.go.dev/badge/github.com/Pantani/pool-party.svg)](https://pkg.go.dev/github.com/Pantani/pool-party)
[![codecov](https://codecov.io/gh/Pantani/pool-party/branch/master/graph/badge.svg?token=2PPNMZ99KQ)](https://codecov.io/gh/Pantani/pool-party)# Pool-Party
Multi-coin address pool generation.
- Initialization:
```go
pool := pool_party.NewPoolWithSecret(bip44.Ether, "simple habit juice brush blush derive biology busy clown sister maple recipe", "1234")
logger.Info("pool with secret", logger.Params{"params": pool})// OR
pool = pool_party.NewPool(bip44.Ether)
// Generate new mnemonic with 128 bits
err := pool.GenerateMnemonic(128, "")
if err != nil {
logger.Panic(err)
}
logger.Info("mnemonic generated", logger.Params{"params": pool})// Generate new mnemonic with 256 bits
err = pool.GenerateMnemonic(256, "")
if err != nil {
logger.Panic(err)
}
logger.Info("mnemonic generated", logger.Params{"params": pool})
```- Generate addresses:
```go
// Generate 100 address starting by index 50 (50 - 150)
start := 50
length := 100
result, err := pool.GenerateAddressPool(start, length)
if err != nil {
logger.Panic(err)
}logger.Info("address pool generated", logger.Params{"length": len(result)})
for i, addr := range result {
logger.Info("new address", logger.Params{"index": start + i, "address": addr.Address})
}
```