forked from mirrors/gomod2nix
e54afe9222
- added a test case to demonstrate the fail scenario
11 lines
244 B
Go
11 lines
244 B
Go
package hd
|
|
|
|
import (
|
|
"github.com/btcsuite/btcd/chaincfg"
|
|
"github.com/btcsuite/btcutil/hdkeychain"
|
|
)
|
|
|
|
// NewExtendedKey
|
|
func NewExtendedKey() (*hdkeychain.ExtendedKey, error) {
|
|
return hdkeychain.NewMaster([]byte{}, &chaincfg.MainNetParams)
|
|
}
|