You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package main
|
|
|
|
import (
|
|
"encoding/base64"
|
|
"fmt"
|
|
|
|
"github.com/tendermint/tendermint/state"
|
|
)
|
|
|
|
func gen_account() {
|
|
|
|
// Generate private account
|
|
privAccount := state.GenPrivAccount()
|
|
|
|
fmt.Printf(`Generated account:
|
|
Account Public Key: %X
|
|
(base64) %v
|
|
Account Private Key: %X
|
|
(base64) %v
|
|
`,
|
|
privAccount.PubKey,
|
|
base64.StdEncoding.EncodeToString(privAccount.PubKey),
|
|
privAccount.PrivKey,
|
|
base64.StdEncoding.EncodeToString(privAccount.PrivKey))
|
|
}
|