Documentation
¶
Index ¶
Constants ¶
View Source
const GAIAX_REGISTRY_TRUSTANCHOR_FILE = "/v2/api/trustAnchor/chain/file"
Variables ¶
View Source
var ErrorRegistry = errors.New("gaiax_registry_failed_to_answer_properly")
View Source
var ErrorUnresolvableDid = errors.New("unresolvable_did")
Functions ¶
This section is empty.
Types ¶
type CertChainRequest ¶
type CertChainRequest struct {
Certs string `json:"certs"`
}
type DIDResolver ¶
type DIDResolver interface {
Resolve(didStr string) (*did.DocResolution, error)
}
DIDResolver resolves DIDs to their documents.
type FileChainRequest ¶
type FileChainRequest struct {
Uri string `json:"uri"`
}
type GaiaXClient ¶
type GaiaXClient interface {
IsTrustedParticipant(registryEndpoint string, did string) (trusted bool)
}
* * A client to retrieve infromation from EBSI-compatible TrustedIssuerRegistry APIs.
func NewGaiaXHttpClient ¶
func NewGaiaXHttpClient() (client GaiaXClient, err error)
type GaiaXHttpClient ¶
type GaiaXHttpClient struct {
// contains filtered or unexported fields
}
func (GaiaXHttpClient) IsTrustedParticipant ¶
func (ghc GaiaXHttpClient) IsTrustedParticipant(registryEndpoint string, didStr string) (trusted bool)
type GaiaXRegistryClient ¶
type GaiaXRegistryClient struct {
// contains filtered or unexported fields
}
func (*GaiaXRegistryClient) GetComplianceIssuers ¶
func (rc *GaiaXRegistryClient) GetComplianceIssuers() ([]string, error)
TODO Could propably cache the response very generously as new issuers are not added often
type RegistryClient ¶
type RegistryClient interface {
// Get the list of DIDs of the trustable issuers
GetComplianceIssuers() ([]string, error)
}
func InitGaiaXRegistryVerificationService ¶
func InitGaiaXRegistryVerificationService(url string) RegistryClient
type VerificationResult ¶
type VerificationResult struct {
Result bool `json:"result"`
}
Click to show internal directories.
Click to hide internal directories.