diff --git a/crypto/signer.go b/crypto/signer.go index 1972274..994ad86 100644 --- a/crypto/signer.go +++ b/crypto/signer.go @@ -2,6 +2,8 @@ package neofscrypto import ( "fmt" + + "github.com/nspcc-dev/neofs-api-go/v2/refs" ) // Scheme represents digital signature algorithm with fixed cryptographic hash function. @@ -17,6 +19,11 @@ const ( ECDSA_DETERMINISTIC_SHA256 // Deterministic ECDSA with SHA-256 hashing (RFC 6979) ) +// String implements fmt.Stringer. +func (x Scheme) String() string { + return refs.SignatureScheme(x).String() +} + // maps Scheme to blank PublicKey constructor. var publicKeys = make(map[Scheme]func() PublicKey)