tendermint/cmd/gen_account.go

21 lines
323 B
Go
Raw Normal View History

package main
import (
"fmt"
2015-03-30 22:50:27 -07:00
"github.com/tendermint/tendermint2/account"
"github.com/tendermint/tendermint2/binary"
)
2014-11-07 23:27:03 -08:00
func gen_account() {
2015-01-13 21:03:01 -08:00
privAccount := account.GenPrivAccount()
privAccountJSONBytes := binary.JSONBytes(privAccount)
2015-01-13 21:03:01 -08:00
fmt.Printf(`Generated a new account!
2015-01-13 21:03:01 -08:00
%v
`,
2015-01-13 21:03:01 -08:00
string(privAccountJSONBytes),
2014-12-31 22:13:49 -08:00
)
}