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
, ornull
if 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
amount
from thesenderWallet
wallet for the givenpairwiseDid
address. Signs everything that needs to be signed with the private key contained inside the given wallet and theprivateKey
. Optionallyfee
and broadcastingmode
parameters can be specified. -
requestDidPowerUpsList(
List< RequestDidPowerUp> requestDidPowerUpsList, Wallet wallet, {StdFee? fee, BroadcastingMode? mode}) → Future<TransactionResult> -
Sends a new transaction from the sender
wallet
to request a list of Did PowerUprequestDidPowerUpsList
. Optionallyfee
and broadcastingmode
parameters can be specified. -
setDidDocument(
DidDocument didDocument, Wallet wallet, {StdFee? fee, BroadcastingMode? mode, Client? client}) → Future< TransactionResult> -
Performs a transaction setting the specified
didDocument
as being associated with the address present inside the specifiedwallet
. Optionallyfee
and broadcastingmode
parameters can be specified. -
setDidDocumentsList(
List< DidDocument> didDocuments, Wallet wallet, {StdFee? fee, BroadcastingMode? mode, Client? client}) → Future<TransactionResult> -
Performs a transaction setting the
didDocuments
list as being associated with the address present inside the specifiedwallet
. Optionallyfee
and broadcastingmode
parameters can be specified.