Versions in this module Expand all Collapse all v1 v1.0.0 Dec 23, 2023 Changes in this version + func GetMethodForDID(id string) (did.Method, error) + func ResolveKeyForDID(ctx context.Context, resolver Resolver, id, kid string) (gocrypto.PublicKey, error) + type DocumentMetadata struct + CanonicalID string + Created string + Deactivated bool + EquivalentID []string + Method Method + NextUpdate string + NextVersionID string + Updated string + VersionID string + func (s *DocumentMetadata) IsValid() bool + type Error struct + Code string + InvalidDID bool + NotFound bool + RepresentationNotSupported bool + type Metadata struct + ContentType string + Error *Error + type Method struct + Published bool + RecoveryCommitment string + UpdateCommitment string + type MultiMethodResolver struct + func NewResolver(resolvers ...Resolver) (*MultiMethodResolver, error) + func (dr MultiMethodResolver) Methods() []did.Method + func (dr MultiMethodResolver) Resolve(ctx context.Context, id string, opts ...Option) (*Result, error) + type Option any + type Resolver interface + Methods func() []did.Method + Resolve func(ctx context.Context, id string, opts ...Option) (*Result, error) + type Result struct + Context string + func ParseDIDResolution(resolvedDID []byte) (*Result, error) + func (r *Result) IsEmpty() bool