coniks-sys / coniks-go

A CONIKS implementation in Golang
http://coniks.org
Other
116 stars 30 forks source link

Use `ioutil.WriteFile` for SaveSTR #210

Closed weikengchen closed 5 years ago

weikengchen commented 5 years ago

This is relevant to #209.

Currently, SaveSTR uses utils.WriteFile, which causes a new running of the server doesn't rewrite the init.str and causes the client reporting mismatched hash chain. To resolve that, we change it to ioutil.WriteFile, which ensures that the server writes new initial STR.

weikengchen commented 5 years ago

closed as this is a design choice.