IdHelper class
Allows to perform common operations related to CommercioID.
Constructors
- IdHelper()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getDidDocument(
String did, Wallet wallet, {Client? client}) → Future< DidDocument?> -
Returns the Did Document associated with the given
did, ornullif no Did Document was found. -
requestDidPowerUp(
Wallet senderWallet, String pairwiseDid, List< StdCoin> amount, CommercioRSAPrivateKey privateKey, {StdFee? fee, BroadcastingMode? mode}) → Future<TransactionResult> -
Creates a new transaction to request a Did PowerUp
of the given
amountfrom thesenderWalletwallet for the givenpairwiseDidaddress. Signs everything that needs to be signed with the private key contained inside the given wallet and theprivateKey. Optionallyfeeand broadcastingmodeparameters can be specified. -
requestDidPowerUpsList(
List< RequestDidPowerUp> requestDidPowerUpsList, Wallet wallet, {StdFee? fee, BroadcastingMode? mode}) → Future<TransactionResult> -
Sends a new transaction from the sender
walletto request a list of Did PowerUprequestDidPowerUpsList. Optionallyfeeand broadcastingmodeparameters can be specified. -
setDidDocument(
DidDocument didDocument, Wallet wallet, {StdFee? fee, BroadcastingMode? mode, Client? client}) → Future< TransactionResult> -
Performs a transaction setting the specified
didDocumentas being associated with the address present inside the specifiedwallet. Optionallyfeeand broadcastingmodeparameters can be specified. -
setDidDocumentsList(
List< DidDocument> didDocuments, Wallet wallet, {StdFee? fee, BroadcastingMode? mode, Client? client}) → Future<TransactionResult> -
Performs a transaction setting the
didDocumentslist as being associated with the address present inside the specifiedwallet. Optionallyfeeand broadcastingmodeparameters can be specified.