identity

package
Version: v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Holder

type Holder interface {
	HolderGetCredentialValidity(credentialExistence *proof.CredentialExistence) (*proof.CredentialValidity, error)
	HolderImportCredentialExistence(credentialExistence *proof.CredentialExistence) error
}

Holder is an interface of an Identity that is only capable of holding received claims. Usually this interface is never used because the minimum Identity should be able to act as a Genesis Only Identity. This interface is defined to be used in the IssuerHolder interface.

type Issuer

type Issuer interface {
	ID() *core.ID
	GenCredentialExistence(claim merkletree.Entrier) (*proof.CredentialExistence, error)
	IssueClaim(claim merkletree.Entrier) error
	PublishState() error
	RevokeClaim(claim merkletree.Entrier) error
	UpdateClaim(hIndex *merkletree.Hash, value []merkletree.ElemBytes) error
	Sign(string) (string, error)
	SignBinary(string) (string, error)
}

Issuer is an interface of an Identity that is only capable of issuing claims. The identity can be set up without access to the IdenStates Smart Contract, in which case it will be a Genesis Only Identity and Identity update functions should fail.

type IssuerHolder

type IssuerHolder interface {
	Issuer
	Holder
}

IssuerHolder is an interface of an Identity capable of issuing claims and holding claims. It combines the Issuer and Holder interfaces.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL