DiscussionMixin mixin
For group discussions, a dedicated transaction chain will contain a smart contract and its updates, as well as the discussion's rules and description. The messages will be contained in the inputs of the smart contracts in the chain. A general public key for accessing messages is made available.
- Mixin Applications
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
-
createTransactionSC(
{required Keychain keychain, required ApiService apiService, required List< String> membersPubKey, required String discussionName, required List<String> adminsPubKey, required String adminAddress, required String serviceName, int indexSCTransaction = 0}) → Future<({KeyPair previousKeyPair, Transaction transaction})> -
getDiscussionFromSCAddress(
{required ApiService apiService, required String discussionSCAddress, required KeyPair keyPair}) → Future< AEDiscussion?> -
getDiscussionKeyAccess(
{required ApiService apiService, required String discussionSCAddress, required KeyPair keyPair}) → Future< Uint8List> - This method get the AES Key used to encrypt and decrypt informations in the discussion (messages, discussion's properties)
-
getSCDiscussionLastContent(
{required ApiService apiService, required String discussionSCAddress, required KeyPair readerKeyPair}) → Future< String> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateTransactionSC(
{required Keychain keychain, required ApiService apiService, required String discussionName, required List< String> adminsPubKey, required List<String> membersPubKey, required String adminAddress, required String serviceName, required String discussionSCAddress, required KeyPair adminKeyPair, bool updateSCAESKey = false}) → Future<({KeyPair previousKeyPair, Transaction transaction})>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited