Versions in this module Expand all Collapse all v1 v1.0.1 Dec 24, 2023 Changes in this version + const BitcoinNetworkPrefix + const DIDPKHPrefix + const ECDSASECP256k1RecoveryMethod2020 + const EthereumNetworkPrefix + const PolygonNetworkPrefix + func GetDIDPKHContext() (string, error) + func GetDIDPKHNetworkPrefixes() []string + func GetDIDPKHPrefixForNetwork(n Network) (string, error) + func GetVerificationTypeForNetwork(n Network) (string, error) + func IsValidPKH(id PKH) bool + type Network string + const Bitcoin + const Ethereum + const Polygon + func GetDIDPKHNetworkForDID(id string) (Network, error) + func GetDIDPKHNetworkForPrefix(p string) (Network, error) + func GetSupportedPKHNetworks() []Network + type PKH string + func CreateDIDPKH(namespace, reference, address string) (*PKH, error) + func CreateDIDPKHFromNetwork(network Network, address string) (*PKH, error) + func (PKH) Method() did.Method + func (d PKH) Expand() (*did.Document, error) + func (d PKH) IsValid() bool + func (d PKH) String() string + func (d PKH) Suffix() (string, error) + type Resolver struct + func (Resolver) Methods() []did.Method + func (Resolver) Resolve(_ context.Context, id string, _ ...resolution.Option) (*resolution.Result, error)