networkmap

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DIDDocument added in v0.14.0

type DIDDocument struct {
	Context             []string              `ffstruct:"DIDDocument" json:"@context"`
	ID                  string                `ffstruct:"DIDDocument" json:"id"`
	Authentication      []string              `ffstruct:"DIDDocument" json:"authentication"`
	VerificationMethods []*VerificationMethod `ffstruct:"DIDDocument" json:"verificationMethod"`
}

DIDDocument - see https://www.w3.org/TR/did-core/#core-properties

type Manager

type Manager interface {
	RegisterOrganization(ctx context.Context, org *core.IdentityCreateDTO, waitConfirm bool) (identity *core.Identity, err error)
	RegisterNode(ctx context.Context, waitConfirm bool) (node *core.Identity, err error)
	RegisterNodeOrganization(ctx context.Context, waitConfirm bool) (org *core.Identity, err error)
	RegisterIdentity(ctx context.Context, dto *core.IdentityCreateDTO, waitConfirm bool) (identity *core.Identity, err error)
	UpdateIdentity(ctx context.Context, id string, dto *core.IdentityUpdateDTO, waitConfirm bool) (identity *core.Identity, err error)

	GetOrganizationByNameOrID(ctx context.Context, nameOrID string) (*core.Identity, error)
	GetOrganizations(ctx context.Context, filter ffapi.AndFilter) ([]*core.Identity, *ffapi.FilterResult, error)
	GetOrganizationsWithVerifiers(ctx context.Context, filter ffapi.AndFilter) ([]*core.IdentityWithVerifiers, *ffapi.FilterResult, error)
	GetNodeByNameOrID(ctx context.Context, nameOrID string) (*core.Identity, error)
	GetNodes(ctx context.Context, filter ffapi.AndFilter) ([]*core.Identity, *ffapi.FilterResult, error)
	GetIdentityByID(ctx context.Context, id string) (*core.Identity, error)
	GetIdentityByIDWithVerifiers(ctx context.Context, id string) (*core.IdentityWithVerifiers, error)
	GetIdentityByDID(ctx context.Context, did string) (*core.Identity, error)
	GetIdentityByDIDWithVerifiers(ctx context.Context, did string) (*core.IdentityWithVerifiers, error)
	GetIdentities(ctx context.Context, filter ffapi.AndFilter) ([]*core.Identity, *ffapi.FilterResult, error)
	GetIdentitiesWithVerifiers(ctx context.Context, filter ffapi.AndFilter) ([]*core.IdentityWithVerifiers, *ffapi.FilterResult, error)
	GetIdentityVerifiers(ctx context.Context, id string, filter ffapi.AndFilter) ([]*core.Verifier, *ffapi.FilterResult, error)
	GetVerifiers(ctx context.Context, filter ffapi.AndFilter) ([]*core.Verifier, *ffapi.FilterResult, error)
	GetVerifierByHash(ctx context.Context, hash string) (*core.Verifier, error)
	GetDIDDocForIndentityByID(ctx context.Context, id string) (*DIDDocument, error)
	GetDIDDocForIndentityByDID(ctx context.Context, did string) (*DIDDocument, error)
}

type VerificationMethod added in v0.14.0

type VerificationMethod struct {
	ID         string `ffstruct:"DIDVerificationMethod" json:"id"`
	Type       string `ffstruct:"DIDVerificationMethod" json:"type"`
	Controller string `ffstruct:"DIDVerificationMethod" json:"controller"`
	// Controller specific fields
	BlockchainAccountID string `ffstruct:"DIDVerificationMethod" json:"blockchainAcountId,omitempty"`
	MSPIdentityString   string `ffstruct:"DIDVerificationMethod" json:"mspIdentityString,omitempty"`
	DataExchangePeerID  string `ffstruct:"DIDVerificationMethod" json:"dataExchangePeerID,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL