Documentation ¶
Index ¶
- type ChainClient
- func (cc *ChainClient) BroadcastTx(msgs ...sdk.Msg) (txHash string)
- func (cc *ChainClient) Close()
- func (cc *ChainClient) DIDAddVerification(VMIDFragment string, pubKey []byte, vmType didTypes.VerificationMaterialType, ...)
- func (cc *ChainClient) DIDDoc(didID string) didTypes.DidDocument
- func (cc *ChainClient) GetBalance(address string) *sdk.Coin
- func (cc *ChainClient) GetBalances(address string) (sdk.Coins, error)
- func (cc *ChainClient) GetChainOfTrust(licenseCredentialID string) (cot []vcTypes.VerifiableCredential)
- func (cc *ChainClient) GetDenomChainOfTrust(denom string) (cot []vcTypes.VerifiableCredential)
- func (cc *ChainClient) GetHolderPublicVCS(didID string) (vcs []vcTypes.VerifiableCredential, err error)
- func (cc *ChainClient) GetLicenseCredentials() (vcs []vcTypes.VerifiableCredential, err error)
- func (cc *ChainClient) GetPublicVC(vcID string) vcTypes.VerifiableCredential
- func (cc *ChainClient) Run(hub *config.MsgHub)
- type KeyData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainClient ¶
type ChainClient struct {
// contains filtered or unexported fields
}
func Client ¶
func Client(cfg config.EdgeConfigSchema, password string) *ChainClient
func (*ChainClient) BroadcastTx ¶
func (cc *ChainClient) BroadcastTx(msgs ...sdk.Msg) (txHash string)
BroadcastTx broadcast the transaction and retrieve the tx hash
func (*ChainClient) Close ¶
func (cc *ChainClient) Close()
func (*ChainClient) DIDAddVerification ¶
func (cc *ChainClient) DIDAddVerification(VMIDFragment string, pubKey []byte, vmType didTypes.VerificationMaterialType, relationships ...string)
DIDAddVerification add verification to a a DID document
func (*ChainClient) DIDDoc ¶
func (cc *ChainClient) DIDDoc(didID string) didTypes.DidDocument
DIDDoc retrieve a did document for a
func (*ChainClient) GetBalance ¶
func (cc *ChainClient) GetBalance(address string) *sdk.Coin
GetBalance retrieves the "cash" balance for an account
func (*ChainClient) GetBalances ¶
func (cc *ChainClient) GetBalances(address string) (sdk.Coins, error)
GetBalances retrieves all the balances for an account
func (*ChainClient) GetChainOfTrust ¶
func (cc *ChainClient) GetChainOfTrust(licenseCredentialID string) (cot []vcTypes.VerifiableCredential)
GetChainOfTrust retrieve the chain of trust for a token DENOM
func (*ChainClient) GetDenomChainOfTrust ¶
func (cc *ChainClient) GetDenomChainOfTrust(denom string) (cot []vcTypes.VerifiableCredential)
GetDenomChainOfTrust retrieve the chain of trust for a token DENOM
func (*ChainClient) GetHolderPublicVCS ¶
func (cc *ChainClient) GetHolderPublicVCS(didID string) (vcs []vcTypes.VerifiableCredential, err error)
GetHolderPublicVCS retrieve the VCS holded by a did
func (*ChainClient) GetLicenseCredentials ¶
func (cc *ChainClient) GetLicenseCredentials() (vcs []vcTypes.VerifiableCredential, err error)
GetLicenseCredentials retrieve the VCS holded by a did
func (*ChainClient) GetPublicVC ¶
func (cc *ChainClient) GetPublicVC(vcID string) vcTypes.VerifiableCredential
GetPublicVC retrieve a vc by id
func (*ChainClient) Run ¶
func (cc *ChainClient) Run(hub *config.MsgHub)
Click to show internal directories.
Click to hide internal directories.