mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 14:52:17 +00:00
21 lines
323 B
Go
21 lines
323 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/tendermint/tendermint2/account"
|
|
"github.com/tendermint/tendermint2/binary"
|
|
)
|
|
|
|
func gen_account() {
|
|
privAccount := account.GenPrivAccount()
|
|
privAccountJSONBytes := binary.JSONBytes(privAccount)
|
|
fmt.Printf(`Generated a new account!
|
|
|
|
%v
|
|
|
|
`,
|
|
string(privAccountJSONBytes),
|
|
)
|
|
}
|