package did import "fmt" // Decoder errors var ( // ErrInvalidDid indicates that the DID supplied to the DID resolution function does not conform to valid syntax. ErrInvalidDid = fmt.Errorf("invalid DID") // ErrMethodNotSupported indicates that the DID method is not supported, or that the corresponding decoder // has not been registered properly. ErrMethodNotSupported = fmt.Errorf("DID method not supported") ) // Resolver errors var ( // ErrNotFound indicates that the DID resolver was unable to find the DID document for the given DID. ErrNotFound = fmt.Errorf("did not found") // ErrResolutionFailure indicates that the DID resolver failed to resolve the DID, in a way that is not ErrNotFound ErrResolutionFailure = fmt.Errorf("resolution failure") )