forked from TrueCloudLab/frostfs-sdk-go
[#190] crypto/ecdsa: Use separate types for RFC-6979 signature algo
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
7fe75d2cd9
commit
9f20d74d76
9 changed files with 105 additions and 124 deletions
|
@ -123,11 +123,8 @@ func (id ID) CalculateIDSignature(key ecdsa.PrivateKey) (neofscrypto.Signature,
|
|||
}
|
||||
|
||||
var sig neofscrypto.Signature
|
||||
var signer neofsecdsa.Signer
|
||||
|
||||
signer.SetKey(key)
|
||||
|
||||
return sig, sig.Calculate(signer, data)
|
||||
return sig, sig.Calculate(neofsecdsa.Signer(key), data)
|
||||
}
|
||||
|
||||
// Marshal marshals ID into a protobuf binary form.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue