export library

Classes

AccountData
Bip39
BurnCcc
Contains the data to burn previously minteted CCC.
BurnCccHelper
Allows to easily create a BurnCcc
BuyMembership
Contains the data related to a membership buying.
BuyMembershipHelper
Allows to easily create a BuyMembership and perform common related operations
ByteBuffer
A sequence of bytes underlying a typed data object.
ByteData
A fixed-length, random-access sequence of bytes that also provides random and unaligned access to the fixed-width integers and floating point numbers represented by those bytes.
BytesBuilder
Builds a list of bytes, allowing bytes and lists of bytes to be added at the end.
CommercioDoc
Contains all the data related to a document that is sent to the chain when a user wants to share a document with another user.
CommercioDocChecksum
CommercioDocEncryptionData
CommercioDocEncryptionDataKey
CommercioDocHelper
Allows to easily create a CommercioDoc and perform common related operations
CommercioDocMetadata
CommercioDocMetadataSchema
CommercioDocReceipt
Represents a document receipt that indicates that the document having the given documentUuid present inside the transaction with has txHash and sent by recipientDid has been received from the senderDid.
CommercioDocReceiptHelper
Allows to easily create a CommercioDocReceipt and perform common related operations.
CommercioDoSign
CommercioECPrivateKey
Wrapper of the pointyCastle ECPrivateKey
CommercioECPublicKey
Wrapper of the pointyCastle ECPublicKey
CommercioKeyPair<P extends CommercioPublicKey, S extends CommercioPrivateKey>
An asymmetric pair of public and private asymmetric keys
CommercioPrivateKey
Represents a generic asymmetric private key
CommercioPublicKey
Represents a generic asymmetric public key
CommercioRSAPrivateKey
Wrapper of the pointyCastle RSAPrivateKey
CommercioRSAPublicKey
Wrapper of the pointyCastle RSAPublicKey
DidDocument
Commercio network's did document is described here: https://scw-gitlab.zotsell.com/Commercio.network/Cosmos-application/blob/master/Commercio%20Decentralized%20ID%20framework.md
DidDocumentHelper
Allows to easily create a Did Document and perform common related operations
DidDocumentProof
Contains the data of the proof that makes sure the user has properly signed the Did Document contents with his authentication key so that he can guarantee that he is the real controller of the Did Document itself.
DidDocumentProofSignatureContent
DidDocumentPublicKey
Contains the data of public key contained inside a Did document.'
DidDocumentService
Contains the data of a service that can accept the Did Document as authentication method or something else.
DidPowerUpRequestPayload
Represents the payload that should be put inside a MsgRequestDidPowerUp message.
DocsHelper
Ed25519HdKey
Implementation of ED25519 private key derivation from master private key
Ed25519PublicKey
Wrapper of the Ed25519_hd_key
EncryptionHelper
Allows to perform common encryption operations such as RSA/AES encryption and decryption.
Endian
Endianness of number representation.
ExchangeTradePosition
Float32List
A fixed-length list of IEEE 754 single-precision binary floating-point numbers that is viewable as a TypedData.
Float32x4
Float32x4 immutable value type and operations.
Float32x4List
A fixed-length list of Float32x4 numbers that is viewable as a TypedData.
Float64List
A fixed-length list of IEEE 754 double-precision binary floating-point numbers that is viewable as a TypedData.
Float64x2
Float64x2 immutable value type and operations.
Float64x2List
A fixed-length list of Float64x2 numbers that is viewable as a TypedData.
IdHelper
Allows to perform common operations related to CommercioID.
Int16List
A fixed-length list of 16-bit signed integers that is viewable as a TypedData.
Int32List
A fixed-length list of 32-bit signed integers that is viewable as a TypedData.
Int32x4
Int32x4 and operations.
Int32x4List
A fixed-length list of Int32x4 numbers that is viewable as a TypedData.
Int64List
A fixed-length list of 64-bit signed integers that is viewable as a TypedData.
Int8List
A fixed-length list of 8-bit signed integers.
InviteUser
Contains the data related to invite a new user to join the system.
InviteUserHelper
Allows to easily create an InviteUser and perform common related operations
KeysHelper
Allows to easily generate new keys either to be used with AES or RSA key.
KycHelper
Allows to easily perform the Commercio Kyc module related transactions.
MapSorter
Allows to easily sort a Map by its keys.
MintCcc
MintCccHelper
Allows to easily create a MintCcc
MintHelper
Allows to easily perform the Commercio Mint module related transactions.
MsgBurnCcc
Represents the transaction message that must be used to burn previously minteted CCC
MsgBuyMembership
Represents the transaction message that must be used when wanting to buy a membership.
MsgInviteUser
Represents the transaction message that must be used when wanting to invite a new user to join the system and being recognized as his invitee. After doing so, if the invited user buys a membership, you will be able to get a reward based on your current membership and the type he has bought.
MsgMintCcc
Represents the transaction message that must be used to mint CCC
MsgRequestDidPowerUp
Represents the transaction message that should be used when asking for a private Did power up.
MsgRewardPoolDeposit
Represents the transaction message that must be used when wanting to deposit into reward pool.
MsgSend
MsgSend extends StdMsg and represents the message that should be used when sending tokens from one user to another one. It requires to specify the address from which to send the tokens, the one that should receive the tokens and the amount of tokens to send.
MsgSendDocumentReceipt
Message that should be used when wanting to send a document receipt transaction.
MsgSetDidDocument
Message that must be used when setting a Did document.
MsgShareDocument
Represents the transaction message that must be used when wanting to share a document from one user to another one.
Network
Allows to easily perform network-related operations.
NetworkInfo
NodeInfo
NodeInfoApplicationVersion
NodeInfoOther
NodeInfoProtocolVersion
NodeInfoResponse
RequestDidPowerUp
Contains the data related to a Did PowerUp that is requested by a user.
RequestDidPowerUpHelper
Allows to easily create a RequestDidPowerUp and perform common related operations
RewardPoolDeposit
Contains the data related to a reward pool deposit .
RewardPoolDepositHelper
Allows to easily create a DepositRewardPool and perform common related operations
RSAKeyParser
RSA PEM parser.
SignHelper
Allows to easily perform signature-related operations.
StdCoin
Contains the data of a specific coin
StdFee
StdMsg
StdMsg represents a standard message that can be included inside a transaction.
StdPublicKey
StdSignature
StdSignatureMessage
StdTx
TransactionError
Contains the data related to an error that has occurred when broadcasting the transaction.
TransactionResult
Represents the result that is returned when broadcasting a transaction.
TxBuilder
Allows to easily build and sign a StdTx that can later be sent over the network.
TxHelper
Allows to easily perform common transaction operations.
TxSender
Allows to easily send a StdTx using the data contained inside the specified Wallet.
TxSigner
Allows to easily sign a StdTx object that already contains a message.
TypedData
A typed view of a sequence of bytes.
TypedDataList<E>
A TypedData fixed-length List-view on the bytes of buffer.
Uint16List
A fixed-length list of 16-bit unsigned integers that is viewable as a TypedData.
Uint32List
A fixed-length list of 32-bit unsigned integers that is viewable as a TypedData.
Uint64List
A fixed-length list of 64-bit unsigned integers that is viewable as a TypedData.
Uint8ClampedList
A fixed-length list of 8-bit unsigned integers.
Uint8List
A fixed-length list of 8-bit unsigned integers.
Wallet
Represents a wallet which contains the hex private key, the hex public key and the hex address. In order to create one properly, the Wallet.derive method should always be used. The associated networkInfo will be used when computing the bech32Address associated with the wallet.

Functions

calculateDefaultFee({required int msgsNumber, required int fee, required String denom, required int gas}) StdFee
Calculates the default fees from the messages number msgsNumber contained in the transaction and the default values fee, denom and gas.
checkStringBytesLen(String str, int len) bool
Returns true if the bytes length of a string str is less than a certain value len.
encryptField(CommercioDoc doc, Uint8List aesKey, Set<CommercioEncryptedData> encryptedData, List<String> recipients, Wallet wallet, {Client? client}) Future<CommercioDoc>
Transforms doc into one having the proper fields encrypted as specified inside the encryptedData list. All the fields will be encrypted using the specified aesKey. This key will later be encrypted for each and every Did specified into the recipients list. The overall encrypted data will be put inside the proper document field.
getTimeStamp() String
Returns the ISO-8601 current time stamp
matchBech32Format(String? str) bool
Returns true if the provided str is a valid bech32 string (no checksum check is done). See: https://en.bitcoin.it/wiki/Bech32
matchUuidv4(String uuid) bool
Return true if the string uuid has a Uuid v4 format.

Exceptions / Errors

WalletIdentityNotFoundException