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 ¶
IssuerHolder is an interface of an Identity capable of issuing claims and holding claims. It combines the Issuer and Holder interfaces.