mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-27 15:53:57 +00:00
Just some name changes, put in a stand in emission amount, and started copying the algo from Karlsen. Not release worthy yet. Therefore Dev branch exists now. Also, for now this is for research purposes only. I got no clue what to build on top of Kaspa yet. Help would be appreciated for ideas and implementations.
28 lines
505 B
Go
28 lines
505 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/zoomy-network/zoomyd/cmd/zoomywallet/libkaspawallet"
|
|
"github.com/zoomy-network/zoomyd/util"
|
|
)
|
|
|
|
func main() {
|
|
cfg, err := parseConfig()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
privateKey, publicKey, err := libkaspawallet.CreateKeyPair(false)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
addr, err := util.NewAddressPublicKey(publicKey, cfg.NetParams().Prefix)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
fmt.Printf("Private key: %x\n", privateKey)
|
|
fmt.Printf("Address: %s\n", addr)
|
|
}
|