// New returns new instance of anchor event store.
New returns new instance of anchor event store.
// New returns new instance of anchor event store .
func New(provider storage.Provider, loader ld.DocumentLoader) (*Store, error) {
	store, err := provider.OpenStore(nameSpace)
	if err != nil {
		return nil, fmt.Errorf("failed to open vc store: %w", err)
	}
	return &Store{
		documentLoader: loader,
		store:          store,
		marshal:        json.Marshal,
		unmarshal:      json.Unmarshal,
	}, nil
}
func New ( provider storage . Provider , loader ld . DocumentLoader ) ( * Store , error ) { store , err := provider . OpenStore ( nameSpace ) if err != nil { return nil , fmt . Errorf ( " " , err ) } return & Store { documentLoader : loader , store : store , marshal : json . Marshal , unmarshal : json . Unmarshal , } , nil }
New returns new instance of anchor event store.
New returns new instance of anchor event store .