Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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})
}
```