networkmap

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 11 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              `json:"@context"`
	ID                  string                `json:"id"`
	Authentication      []string              `json:"authentication"`
	VerificationMethods []*VerificationMethod `json:"verificationMethod"`
}

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

type Manager

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

	GetOrganizationByNameOrID(ctx context.Context, nameOrID string) (*fftypes.Identity, error)
	GetOrganizations(ctx context.Context, filter database.AndFilter) ([]*fftypes.Identity, *database.FilterResult, error)
	GetNodeByNameOrID(ctx context.Context, nameOrID string) (*fftypes.Identity, error)
	GetNodes(ctx context.Context, filter database.AndFilter) ([]*fftypes.Identity, *database.FilterResult, error)
	GetIdentityByID(ctx context.Context, ns string, id string) (*fftypes.Identity, error)
	GetIdentityByDID(ctx context.Context, did string) (*fftypes.Identity, error)
	GetIdentities(ctx context.Context, ns string, filter database.AndFilter) ([]*fftypes.Identity, *database.FilterResult, error)
	GetIdentityVerifiers(ctx context.Context, ns, id string, filter database.AndFilter) ([]*fftypes.Verifier, *database.FilterResult, error)
	GetVerifiers(ctx context.Context, ns string, filter database.AndFilter) ([]*fftypes.Verifier, *database.FilterResult, error)
	GetVerifierByHash(ctx context.Context, ns, hash string) (*fftypes.Verifier, error)
	GetDIDDocForIndentityByID(ctx context.Context, ns, id string) (*DIDDocument, error)
}

type VerificationMethod added in v0.14.0

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

Jump to

Keyboard shortcuts

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