derecalliance / protobufs

The format of DeRec messages.
Apache License 2.0
3 stars 0 forks source link

Describe what value should be used from `ParameterRange` time range intersections #27

Open zanctor opened 8 months ago

zanctor commented 8 months ago

Time ranges in the ParameterRange protobuf lack the description of which value should be used, when the intersection between parties is found.

For example, let's take minTimeBetweenVerifications/maxTimeBetweenVerifications. It indicates the number of seconds to wait before requesting another share verification for a specified secret version. Let's say, a sharer has values 10 and 20 for min and max respectively, and a helper has 15 and 25. We have an intersection between 15 and 20, but what exact value should be used for in-code checks among this range?

zanctor commented 8 months ago

We are planning to use the lowest value of an intersection. If there is no intersection on at least one of the parameters, the pairing is rejected.

Loedn commented 1 month ago

Documentation change -> use value most beneficial with the sharer