mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-05 19:42:13 +00:00
Changed modulename_ to short module names Also removed Unreader, replaced with PrefixdReader in select locations
21 lines
321 B
Go
21 lines
321 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/tendermint/tendermint/account"
|
|
"github.com/tendermint/tendermint/binary"
|
|
)
|
|
|
|
func gen_account() {
|
|
privAccount := account.GenPrivAccount()
|
|
privAccountJSONBytes := binary.JSONBytes(privAccount)
|
|
fmt.Printf(`Generated a new account!
|
|
|
|
%v
|
|
|
|
`,
|
|
string(privAccountJSONBytes),
|
|
)
|
|
}
|