calculateConversationHash
Generates a unique conversation hash for a pair of account addresses, ensuring a consistent hash regardless of the order of the accounts provided.
Usage
const address1 = '0xAddress1...';
const address2 = '0xAddress2...';
const conversationHash = chat.calculateConversationHash(address1, address2);
Returns
ConversationHash
The uniquely generated conversation hash for the pair of provided account addresses.
Parameters
account1
- Type
Address
The first Ethereum account address used in generating the conversation hash.
account2
- Type
Address
The second Ethereum account address used in generating the conversation hash.