func New(namespace, domain string, processor operationProcessor,
	endpointClient endpointClient, remoteResolver remoteResolver) *OperationDecorator {
	return &OperationDecorator{
		namespace:      namespace,
		domain:         domain,
		processor:      processor,
		endpointClient: endpointClient,
		remoteResolver: remoteResolver,
	}
}
New creates operation decorator that will verify that local domain has latest operations from anchor origin.
package decorator
import (
	"fmt"
	"github.com/trustbloc/edge-core/pkg/log"
	"github.com/trustbloc/sidetree-core-go/pkg/api/operation"
	"github.com/trustbloc/sidetree-core-go/pkg/api/protocol"
	"github.com/trustbloc/sidetree-core-go/pkg/document"
	"github.com/trustbloc/sidetree-core-go/pkg/docutil"
	"github.com/trustbloc/orb/pkg/discovery/endpoint/client/models"
	"github.com/trustbloc/orb/pkg/document/util"
)
var logger = log.New("operation-decorator")