[#20] Client: Optimize memory usage
Avoid memory allocation, use cache and static Signed-off-by: Pavel Gross <p.gross@yando.com>
This commit is contained in:
parent
35fe791406
commit
0ddde467cd
46 changed files with 596 additions and 372 deletions
|
@ -69,7 +69,7 @@ public static class RequestSigner
|
|||
var hash = new byte[65];
|
||||
hash[0] = 0x04;
|
||||
|
||||
key.SignHash(SHA512.Create().ComputeHash(data)).CopyTo(hash, 1);
|
||||
key.SignHash(data.Sha512()).CopyTo(hash, 1);
|
||||
|
||||
return hash;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue