func (s *Signature) Unmarshal(data []byte) error {
	return (*refs.Signature)(s).
		Unmarshal(data)
}
Unmarshal unmarshals protobuf binary representation of Signature.
package pkg
import (
	"github.com/nspcc-dev/neofs-api-go/v2/refs"
)
type Signature refs.Signature
func NewSignatureFromV2(sV2 *refs.Signature) *Signature {
	return (*Signature)(sV2)
}
func NewSignature() *Signature {
	return NewSignatureFromV2(new(refs.Signature))
}
func (s *Signature) Key() []byte {
	return (*refs.Signature)(s).GetKey()
}
func (s *Signature) SetKey(v []byte) {
	(*refs.Signature)(s).SetKey(v)
}
func (s *Signature) Sign() []byte {
	return (*refs.Signature)(s).GetSign()
}
func (s *Signature) SetSign(v []byte) {
	(*refs.Signature)(s).SetSign(v)
}
func (s *Signature) ToV2() *refs.Signature {
	return (*refs.Signature)(s)
}
func (s *Signature) Marshal(b ...[]byte) ([]byte, error) {
	var buf []byte
	if len(b) > 0 {
		buf = b[0]
	}
	return (*refs.Signature)(s).
		StableMarshal(buf)
}