Closed chesnokovilya closed 6 years ago
These errors 're probably caused by recent changes of /protocol
level, e.g., the client wasn't initialized with a pinned STR.
Yes, this is what this error looks like. I don't think we've implemented STR pinning in the client? This is a feature I implemented as part of #193, but I can move it to its own PR to fix this bug.
I don't think we've implemented STR pinning in the client?
Yes, you're right. However, I'd say we also need to rewrite a large part of client's binary when #192 is landed. I'd like to fix this bug after merging #192.
So what is best way to continue work on #180 ? I need MarshalSTRToFile function.
@chesnokovilya You could start by modifying https://github.com/coniks-sys/coniks-go/blob/master/crypto/util.go#L60 and /merkletree
package, so the Set
function also takes salt
as a parameter.
I'd say we also need to rewrite a large part of client's binary when #192 is landed. I'd like to fix this bug after merging #192.
This is true, we're going to rewrite the client binary a fair amount after #192, but I don't think a bugfix for this issue should be blocked by #192 since MarshalSTRToFile()
will primarily be used by the server right now to save the initial STR. Until we implement persistent storage for the client, I think we can add this function independently of how clients perform consistency checks since the client will use a pinned initial STR either way, right?
How to pin initial STR to client? Is there any docs?
@chesnokovilya You could print the initial STR of the server and write it to the client's config file and read from it (https://github.com/coniks-sys/coniks-go/blob/master/coniksclient/config.go#L33). The config file is written in TOML format and we currently use github.com/BurntSushi/toml
to work with the format. However, I suggest you should write a test (for example, like this one: https://github.com/coniks-sys/coniks-go/blob/master/protocol/auditlog/auditlog_test.go#L21) instead of manually running the binaries.
Resolved in #204
I am running server from master branch on local machine(CentOs 7):
When I try to register name-key pair I got the following error: