Last active
January 8, 2019 15:03
-
-
Save liamsi/a80993f24bff574bbfdbbfa9efa84bc7 to your computer and use it in GitHub Desktop.
Revisions
-
liamsi revised this gist
Jan 8, 2019 . 1 changed file with 5 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,11 +9,12 @@ import ( ) func main() { keyFile := "/Users/ismail/.tendermint/config/priv_validator_key.json" stateFile := "/Users/ismail/.tendermint/data/priv_validator_state.json" fpv := privval.LoadFilePV(keyFile, stateFile) pkb := [64]byte(fpv.Key.PrivKey.(ed25519.PrivKeyEd25519)) err := ioutil.WriteFile("/tmp/signing2.key", pkb[:32], 0644) if err != nil { fmt.Println("Duh!!", err) } } -
liamsi renamed this gist
Nov 14, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
liamsi created this gist
Nov 14, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ package main import ( "fmt" "io/ioutil" "github.com/tendermint/tendermint/crypto/ed25519" "github.com/tendermint/tendermint/privval" ) func main() { path := "/Users/ismail/.tendermint/config/priv_validator.json" fpv := privval.LoadFilePV(path) pkb := [64]byte(fpv.PrivKey.(ed25519.PrivKeyEd25519)) err := ioutil.WriteFile("/tmp/signing2.key", pkb[:32], 0644) if err != nil { fmt.Println("Duh!!", err) } }