You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You could pass a new calculated id to the JsonRpcRequest constructor in the TypeMessageHandler.SendRequest function, which would make the change backwards compatible.
Currently, the client JSON RPC duplication mechanism uses the client JSON RPC ID as a unique identifier to detect duplicated client JSON RPC requests.
Since this approach doesn't guarantee the uniqueness of IDs and there's a chance of conflicts a new approach with higher entropy is introduced.
The new id is a
sha256
function of the decrypted payload of the client request:message_id = sha256(decrypted_payload)
Testing:
Here is where the id is currently generated in
WalletConnectSharp
:id
is null)You could pass a new calculated
id
to theJsonRpcRequest
constructor in the TypeMessageHandler.SendRequest function, which would make the change backwards compatible.Original issue in WalletConnectUnity: #103
The text was updated successfully, but these errors were encountered: