Documentation ¶
Overview ¶
Package didconfiguration implement didconfiguration service
Index ¶
- func CreateDIDConfiguration(domain, didValue string, expiryTime int64, signingKeys ...*jose.SigningKey) (*models.DIDConfiguration, error)
- func ValidateDomainLinkageAssertion(domain string, assertion models.DomainLinkageAssertion, doc *did.Doc) error
- func VerifyDIDConfiguration(domain string, configuration *models.DIDConfiguration, doc *did.Doc) ([]string, error)
- func VerifyDIDSignature(jws *jose.JSONWebSignature, doc *did.Doc) ([]byte, error)
- type Option
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDIDConfiguration ¶
func CreateDIDConfiguration(domain, didValue string, expiryTime int64, signingKeys ...*jose.SigningKey) (*models.DIDConfiguration, error)
CreateDIDConfiguration creates a DID Configuration asserting a given DID's ownership over a given domain
using the given signing keys (which are assumed to belong to the DID)
Implements https://identity.foundation/specs/did-configuration/.
func ValidateDomainLinkageAssertion ¶
func ValidateDomainLinkageAssertion(domain string, assertion models.DomainLinkageAssertion, doc *did.Doc) error
ValidateDomainLinkageAssertion validates a domain linkage assertion, using the given VDRI to resolve the DID.
func VerifyDIDConfiguration ¶
func VerifyDIDConfiguration(domain string, configuration *models.DIDConfiguration, doc *did.Doc) ([]string, error)
VerifyDIDConfiguration verifies a DID configuration, using the given VDRI to resolve the DID.
returns a list of the DIDs that were successfully authenticated to this domain.
Types ¶
type Option ¶
type Option func(opts *Service)
Option is a didconfiguration service instance option.
func WithTLSConfig ¶
WithTLSConfig option is for definition of secured HTTP transport using a tls.Config instance.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service fetches and verifies DID-configurations.
func NewService ¶
NewService create new didconfiguration Service.