func (id *ID) Equal(id2 *ID) bool {
	return bytes.Equal(
		(*refs.ObjectID)(id).GetValue(),
		(*refs.ObjectID)(id2).GetValue(),
	)
}
Equal returns true if identifiers are identical.
package object
import (
	"bytes"
	"crypto/sha256"
	"errors"
	"fmt"
	"github.com/mr-tron/base58"
	"github.com/nspcc-dev/neofs-api-go/v2/refs"
)
type ID refs.ObjectID
var errInvalidIDString = errors.New("incorrect format of the string object ID")
func NewIDFromV2(idV2 *refs.ObjectID) *ID {
	return (*ID)(idV2)
}
func NewID() *ID {
	return NewIDFromV2(new(refs.ObjectID))
}
func (id *ID) SetSHA256(v [sha256.Size]byte) {
	(*refs.ObjectID)(id).SetValue(v[:])
}