2025-03-12 14:13:31 +01:00
|
|
|
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")
|
2025-07-21 10:12:05 +02:00
|
|
|
|
|
|
|
|
// ErrResolutionFailure indicates that the DID resolver failed to resolve the DID, in a way that is not ErrNotFound
|
|
|
|
|
ErrResolutionFailure = fmt.Errorf("resolution failure")
|
2025-03-12 14:13:31 +01:00
|
|
|
)
|