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
321 B

  1. package main
  2. import (
  3. "fmt"
  4. "github.com/tendermint/tendermint/account"
  5. "github.com/tendermint/tendermint/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. }