Page MenuHomePhabricator

[SQLite] add query to set ciphertext for outbound P2P message
ClosedPublic

Authored by kamil on May 16 2024, 5:19 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 10:16 AM
Unknown Object (File)
Thu, Nov 21, 9:09 PM
Unknown Object (File)
Fri, Nov 8, 5:13 PM
Unknown Object (File)
Oct 23 2024, 7:24 PM
Unknown Object (File)
Oct 23 2024, 7:21 PM
Unknown Object (File)
Oct 18 2024, 10:29 PM
Unknown Object (File)
Oct 18 2024, 3:58 AM
Unknown Object (File)
Oct 18 2024, 1:09 AM
Subscribers

Details

Summary

After session creation we want to encrypt the message already addressed for other peer, we need a method for it.

This method should be called in the same SQLite transaction as encryption, this is handled later in the stack.

Using hardcoded constants in code - for later usage on the JS side I'll introduce type to make it safer,

Depends on D12069

Test Plan

Tests

Diff Detail

Repository
rCOMM Comm
Branch
publish-broadcasting-2
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.May 17 2024, 3:21 AM
native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
2198–2200 ↗(On Diff #40283)

Please use SQLiteDataConverters.h

2202–2208 ↗(On Diff #40283)

Please remove those lines - SQLiteStatementWrapper destructor does it automatically.

This revision is now accepted and ready to land.May 23 2024, 8:40 AM