func (id *ID) Parse(s string) error {
	data, err := base58.Decode(s)
	if err != nil {
		return err
	} else if len(data) != sha256.Size {
		return errors.New("incorrect format of the string container ID")
	}
	(*refs.ContainerID)(id).SetValue(data)
	return nil
}
Parse parses string representation of ID.

Returns error if s is not a base58 encoded
ID data.
package cid
import (
	"bytes"
	"crypto/sha256"
	"errors"
	"github.com/mr-tron/base58"
	"github.com/nspcc-dev/neofs-api-go/v2/refs"
)
type ID refs.ContainerID
func NewFromV2(idV2 *refs.ContainerID) *ID {
	return (*ID)(idV2)
}
func New() *ID {
	return NewFromV2(new(refs.ContainerID))
}
func (id *ID) SetSHA256(v [sha256.Size]byte) {
	(*refs.ContainerID)(id).SetValue(v[:])
}
func (id *ID) ToV2() *refs.ContainerID {
	return (*refs.ContainerID)(id)
}
func (id *ID) Equal(id2 *ID) bool {
	return bytes.Equal(
		(*refs.ContainerID)(id).GetValue(),
		(*refs.ContainerID)(id2).GetValue(),
	)
}