[#40] Client: Add memory optimization for hash
Signed-off-by: Pavel Gross <p.gross@yadro.com>
This commit is contained in:
parent
32a7e64538
commit
809bd90352
17 changed files with 170 additions and 64 deletions
|
@ -92,8 +92,8 @@ public class ObjectMocker(string key) : ObjectServiceBase(key)
|
|||
|
||||
headResponse.Body.Header.Signature = new Refs.Signature
|
||||
{
|
||||
Key = ByteString.CopyFrom(Key.PublicKey()),
|
||||
Sign = Key.SignData(headResponse.Body.Header.ToByteArray()),
|
||||
Key = Key.PublicKeyProto,
|
||||
Sign = Key.ECDsaKey.SignData(headResponse.Body.Header.ToByteArray()),
|
||||
};
|
||||
|
||||
headResponse.VerifyHeader = GetResponseVerificationHeader(headResponse);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue