From 7cfb79de6824a574a9144fc706fdd4463a34f379 Mon Sep 17 00:00:00 2001 From: Alex Risch Date: Tue, 23 Apr 2024 18:44:50 -0600 Subject: [PATCH] feat: verify consent proof signature Verified consent proofs Added tests for consent proofs --- test/conversations/Conversations.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/conversations/Conversations.test.ts b/test/conversations/Conversations.test.ts index 42bd077c..1442b650 100644 --- a/test/conversations/Conversations.test.ts +++ b/test/conversations/Conversations.test.ts @@ -362,10 +362,10 @@ describe('conversations', () => { const alix = await Client.create(wallet, { env: 'local', }) - const timestamp = Date.now() + 1 + const timestamp = Date.now() const consentMessage = WalletSigner.consentProofRequestText( bo.address, - timestamp + timestamp + 1 ) const signedMessage = await keySigner.wallet.signMessage(consentMessage) const consentProofPayload = invitation.ConsentProofPayload.fromPartial({