service: sign requests on the principle of Matryoshka

This commit changes SignRequestData / VerifyRequestData functions to
add the list of previous public keys to a signed message for all
requests.
This commit is contained in:
Leonard Lyubich 2020-06-22 17:26:59 +03:00
parent ce4513ce54
commit 5e1e220988
4 changed files with 103 additions and 16 deletions

View file

@ -262,6 +262,7 @@ type RequestData interface {
type RequestSignedData interface {
RequestData
SignKeyPairAccumulator
SignKeyPairSource
}
// RequestVerifyData is an interface of request information with signature read access.