Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OperationStoreClient ¶
type OperationStoreClient interface { // Get retrieves all operations related to document Get(uniqueSuffix string) ([]*batch.AnchoredOperation, error) }
OperationStoreClient defines interface for retrieving all operations related to document
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator is responsible for validating document operations and sidetree rules
func (*Validator) IsValidOriginalDocument ¶
IsValidOriginalDocument verifies that the given payload is a valid Sidetree specific document that can be accepted by the Sidetree create operation.
func (*Validator) IsValidPayload ¶
IsValidPayload verifies that the given payload is a valid Sidetree specific payload that can be accepted by the Sidetree update operations
func (*Validator) TransformDocument ¶ added in v0.1.3
func (v *Validator) TransformDocument(internal document.Document) (*document.ResolutionResult, error)
TransformDocument takes internal representation of document and transforms it to required representation
Click to show internal directories.
Click to hide internal directories.