Skip to content

Commit

Permalink
Update keystore.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Nov 2, 2023
1 parent eb39941 commit a205218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blockchain/keystore.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func NewSimpleKeyStorer(dbPath string) *SimpleKeyStorer {
}

func (s *SimpleKeyStorer) SaveKey(ctx context.Context, key string) error {
return os.WriteFile(s.dbPath+"/secret_seed.txt", []byte(key), 0400)
return os.WriteFile(s.dbPath+"/secret_seed.txt", []byte(key), 0600)
}

func (s *SimpleKeyStorer) LoadKey(ctx context.Context) (string, error) {
Expand Down

0 comments on commit a205218

Please sign in to comment.