From 0f56507c25fd554b681f61c6d8534208e51b0142 Mon Sep 17 00:00:00 2001 From: Rein Krul Date: Fri, 8 Dec 2023 17:17:41 +0100 Subject: [PATCH] chores --- discovery/module.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/discovery/module.go b/discovery/module.go index 8df35c5d83..bf38c9bcf0 100644 --- a/discovery/module.go +++ b/discovery/module.go @@ -123,6 +123,8 @@ func (m *Module) Config() interface{} { return &m.config } +// Add registers a presentation on the given Discovery Service. +// See interface.go for more information. func (m *Module) Add(serviceID string, presentation vc.VerifiablePresentation) error { // First, simple sanity checks definition, isServer := m.serverDefinitions[serviceID] @@ -216,6 +218,8 @@ func (m *Module) validateRetraction(serviceID string, presentation vc.Verifiable return nil } +// Get retrieves the presentations for the given service, starting at the given tag. +// See interface.go for more information. func (m *Module) Get(serviceID string, tag *Tag) ([]vc.VerifiablePresentation, *Tag, error) { if _, exists := m.serverDefinitions[serviceID]; !exists { return nil, nil, ErrServerModeDisabled