[#380] Support changes in signature schemes

Support new `SignatureRFC6979` message. Make `refs.ECDSA_SHA512` to be
default scheme.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-03-02 13:15:36 +03:00 committed by Alex Vanin
parent f4fd28e39b
commit d065453bd0
9 changed files with 470 additions and 368 deletions

View file

@ -35,8 +35,7 @@ type SignatureScheme uint32
//nolint:revive
const (
UnspecifiedScheme SignatureScheme = iota
ECDSA_SHA512
ECDSA_SHA512 SignatureScheme = iota
ECDSA_RFC6979_SHA256
)
@ -189,7 +188,7 @@ func (s *Signature) GetScheme() SignatureScheme {
if s != nil {
return s.scheme
}
return UnspecifiedScheme
return 0
}
func (s *Signature) SetScheme(scheme SignatureScheme) {