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)
Mon, Jun 24, 4:26 AM
Unknown Object (File)
Thu, Jun 20, 1:14 PM
Unknown Object (File)
Wed, Jun 19, 9:12 AM
Unknown Object (File)
Wed, Jun 12, 3:56 PM
Unknown Object (File)
Mon, Jun 10, 10:35 AM
Unknown Object (File)
Mon, Jun 10, 7:35 AM
Unknown Object (File)
Sun, Jun 9, 9:54 AM
Unknown Object (File)
Wed, Jun 5, 5:14 PM
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
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

Please use SQLiteDataConverters.h

2202–2208

Please remove those lines - SQLiteStatementWrapper destructor does it automatically.

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