Skip to content

Commit

Permalink
chores
Browse files Browse the repository at this point in the history
  • Loading branch information
reinkrul committed Dec 8, 2023
1 parent b6d9e6a commit 0f56507
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions discovery/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0f56507

Please sign in to comment.