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.

20 lines
323 B

10 years ago
  1. package main
  2. import (
  3. "fmt"
  4. "github.com/tendermint/tendermint2/account"
  5. "github.com/tendermint/tendermint2/binary"
  6. )
  7. func gen_account() {
  8. privAccount := account.GenPrivAccount()
  9. privAccountJSONBytes := binary.JSONBytes(privAccount)
  10. fmt.Printf(`Generated a new account!
  11. %v
  12. `,
  13. string(privAccountJSONBytes),
  14. )
  15. }