package
0.1.0
Repository: https://github.com/tendermint/clearchain.git
Documentation: pkg.go.dev

# Functions

CanExecTx is a convenience function that validates caller's execution permission on a Tx.
IsValidEntityType checks whether a byte is a valid type for an entity.
NewAccount creates a new account.
NewAccountIndex creates a new accounts index.
NewCH is a convenience function to create a new CH.
NewCustodian is a convenience function to create a new Custodian.
NewGCM is a convenience function to create a new GCM.
NewICM is a convenience function to create a new ICM.
NewLegalEntity initializes a new LegalEntity.
NewLegalEntityByType is a convenience function to create a legal entity according to the type given.
NewPermByTxType creates a Perm object by ORing the Tx respective permissions.
NewUser initializes a new user.
SignTx signs the transaction if its address and the privateKey's one match.

# Constants

EntityType byte identifiers.
EntityType byte identifiers.
EntityType byte identifiers.
EntityType byte identifiers.
Each permission listed below reprent a respective transaction.
Each permission listed below reprent a respective transaction.
Each permission listed below reprent a respective transaction.
Each permission listed below reprent a respective transaction.
Each permission listed below reprent a respective transaction.
TxTypeCreateAccount defines CreateAccountTx's code.
TxTypeCreateLegalEntity defines CreateLegalEntityTx's code.
TxTypeCreateUser defines CreateUserTx's code.
TxTypeTransfer defines TrasferTx's code.

# Variables

Currencies contains the in-memory database of supported currencies.

# Structs

Account defines the attributes of an account.
AccountIndex stores the list of accounts managed on the ledger.
AccountsReturned defines the attributes of response's payload.
ConcreteCurrency defines the attributes of a concrete currency type.
CreateAccountTx defines the attributes of an account create.
CreateLegalEntityTx defines the attributes of a legal entity create.
CreateUserTx defines the attributes of a user create.
No description provided by the author
LegalEntity defines the attributes of a legal entity.
No description provided by the author
PrivUser defines the attributes of a private user.
TransferTx defines the attributes of transfer transaction.
TxTransferCommitter defines the attributes of a transfer's sender.
TxTransferCounterSigner defines the attributes of a transfer's counter signer.
TxTransferRecipient defines the attributes of a transfer's recipient.
TxTransferSender defines the attributes of a transfer's sender.
User defines the attribute of a ledger's user.
Wallet defines the attributes of an account's wallet.

# Interfaces

AccountGetter is implemented by any value that has a GetAccount.
AccountGetterSetter is implemented by any value that has both GetAccount and SetAccount.
AccountIndexGetter is implemented by any value that has a GetAccountIndex.
AccountIndexGetterSetter is implemented by any value that has both GetAccountIndex and SetAccountIndex.
AccountIndexSetter is implemented by any value that has a SetAccountIndex.
AccountSetter is implemented by any value that has a SetAccount.
Currency represents a support currency type.
Index defines the operations that can be performed on an objects index.
LegalEntityGetter is implemented by any value that has a GetLegalEntity.
LegalEntityGetterSetter is implemented by any value that has both GetLegalEntity and SetLegalEntity.
LegalEntitySetter is implemented by any value that has a SetLegalEntity.
SignedTx extends Tx with a method to generate signatures.
Tx (Transaction) is an atomic operation on the ledger state.
TxBasicValidator implements basic validation rules.
TxExecutor validates Tx execution permission.
UserGetter is implemented by any value that has a GetUser.
UserGetterSetter is implemented by any value that has both GetUser and SetUser.
UserSetter is implemented by any value that has a SetUser.

# Type aliases

Perm is a synonym of uint64.