chain

package
v0.0.0-...-88a98bb Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

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)

type KeyData

type KeyData struct {
	Address string `json:"address"`
	Armor   string `json:"armor"`
}

Jump to

Keyboard shortcuts

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