func (x *Trust) SetPeer(id *PeerID) {
	(*reputation.Trust)(x).
		SetPeer(id.ToV2())
}
SetPeer sets trusted peer ID.
package reputation
import (
	"crypto/ecdsa"
	"github.com/nspcc-dev/neofs-api-go/pkg"
	"github.com/nspcc-dev/neofs-api-go/util/signature"
	"github.com/nspcc-dev/neofs-api-go/v2/refs"
	"github.com/nspcc-dev/neofs-api-go/v2/reputation"
	signatureV2 "github.com/nspcc-dev/neofs-api-go/v2/signature"
)
type Trust reputation.Trust
func NewTrust() *Trust {
	return TrustFromV2(new(reputation.Trust))
}
func TrustFromV2(t *reputation.Trust) *Trust {
	return (*Trust)(t)
}
func (x *Trust) ToV2() *reputation.Trust {
	return (*reputation.Trust)(x)
}
func TrustsToV2(xs []*Trust) (res []*reputation.Trust) {
	if xs != nil {
		res = make([]*reputation.Trust, 0, len(xs))
		for i := range xs {
			res = append(res, xs[i].ToV2())
		}
	}
	return
}