The Status module that consumes go-ethereum https://status.im
Go to file
Andrea Maria Piana 23f71c1125 Fix encryption id && rekey with a single message
This commit changes the format of the encryption id to be based off 3
things:

1) The group id
2) The timestamp
3) The actual key

Previously this was solely based on the timestamp and the group id, but
this might lead to conflicts. Moreover the format of the key was an
uint32 and so it would wrap periodically.

The migration is a bit tricky, so first we cleared the cache of keys,
that's easier than migrating, and second we set the new field hash_id to
the concatenation of group_id / key_id.
This might lead on some duplication in case keys are re-received, but it
should not have an impact on the correctness of the code.

I have added 2 tests covering compatibility between old/new clients, as
this should not be a breaking change.

It also adds a new message to rekey in a single go, instead of having to
send multiple messages
2023-10-24 20:48:54 +01:00
.dependabot Patch/dependabot protocol (#1980) 2020-05-19 00:14:02 +01:00
.github Add migration check script 2023-06-23 12:01:30 +01:00
.vscode feat(pairing): sync 1-1 chats and groups on pairing devices (#4102) 2023-10-17 09:24:15 -04:00
_assets ci: parametrize DB port for unit tests 2023-09-18 19:54:21 +02:00
_docs rename status-react to status-mobile 2022-07-17 15:37:14 +02:00
_examples go-waku integration (#2247) 2021-06-16 16:19:45 -04:00
abi-spec Upgrade linter to 1.50.0 2023-01-13 17:52:03 +00:00
account chore: synchronization improvements applied to keypairs/accounts 2023-07-05 14:41:26 +02:00
api Fix account not being stored 2023-10-24 19:01:46 +01:00
appdatabase Fix encryption id && rekey with a single message 2023-10-24 20:48:54 +01:00
appmetrics fix(tests): moved test db setup to a common place 't/helpers', created 2023-08-18 09:00:56 +02:00
build/bin add .gitkeep to build/bin so it always exists 2019-03-05 14:22:00 +01:00
cmd waku2: static shards (#3944) 2023-10-12 15:21:49 -04:00
common optimised finding server cert (#4148) 2023-10-18 14:17:49 +08:00
config feat: shard fleet 2023-10-12 17:07:57 -04:00
connection Address linter issues 2022-03-28 13:14:12 +01:00
contracts Update community solidity contracts (#4166) 2023-10-19 08:17:54 +02:00
db Address linter issues 2022-03-28 13:14:12 +01:00
deprecation fx: deprecate profile and timeline chats (#3809) 2023-08-03 17:16:11 +03:00
discovery chore: upgrade go-waku and log about messages sent/received 2022-11-09 17:39:17 +03:00
eth-node waku2: static shards (#3944) 2023-10-12 15:21:49 -04:00
exchanges URL unfurling (initial implementation) (#3471) 2023-05-18 15:43:06 -03:00
exportlogs Upgrade geth to 1.9.5 and Whisper (#1617) 2019-10-04 17:21:24 +02:00
extkeys Upgrade geth 2021-07-20 10:57:38 +02:00
images fix: user avatar status indicator position (#3989) 2023-09-08 09:07:24 +08:00
ipfs fix: add mode build param and change ipfs gateway accordingly 2022-08-26 18:57:55 +02:00
logutils ci: generate junit reports for unit tests 2023-08-17 15:29:18 +02:00
mailserver Fix encryption id && rekey with a single message 2023-10-24 20:48:54 +01:00
metrics Upgrade linter to 1.50.0 2023-01-13 17:52:03 +00:00
mobile Fix account not being stored 2023-10-24 19:01:46 +01:00
multiaccounts Fix encryption id && rekey with a single message 2023-10-24 20:48:54 +01:00
node feat: refresh collectibles when testnet mode setting changes 2023-10-12 10:18:25 -03:00
nodecfg Feat/sync customization color (#3702) 2023-07-18 21:35:06 +08:00
notifier Notifier package to interact with gorush notifications (#910) 2018-05-08 16:30:03 +02:00
params feat: shard fleet 2023-10-12 17:07:57 -04:00
peers synchronize display name (#2989) 2022-12-29 14:16:19 +08:00
postgres ci: parametrize DB port for unit tests 2023-09-18 19:54:21 +02:00
profiling test: use `T.TempDir` to create temporary test directory (#2746) 2023-04-26 21:39:51 +01:00
protocol Fix encryption id && rekey with a single message 2023-10-24 20:48:54 +01:00
rpc feat: arbitrum sepolia 2023-10-17 09:28:13 +02:00
rtt rename status-react to status-mobile 2022-07-17 15:37:14 +02:00
server optimised finding server cert (#4148) 2023-10-18 14:17:49 +08:00
services Fix account not being stored 2023-10-24 19:01:46 +01:00
signal feat: added functionality to ask a client to sign a transaction and an endpoint to continue sending using provided signature 2023-10-17 19:42:06 +02:00
sqlite fix: use proper migrations for protocol's test database 2023-10-03 15:11:58 +02:00
static Fix encryption id && rekey with a single message 2023-10-24 20:48:54 +01:00
t Fix encryption id && rekey with a single message 2023-10-24 20:48:54 +01:00
telemetry feat: use protected topics for communities 2023-08-23 13:56:00 -04:00
timesource add more ntp servers (#3890) 2023-08-16 10:06:03 +08:00
transactions feat: added functionality to ask a client to sign a transaction and an endpoint to continue sending using provided signature 2023-10-17 19:42:06 +02:00
vendor feat: added functionality to ask a client to sign a transaction and an endpoint to continue sending using provided signature 2023-10-17 19:42:06 +02:00
waku Upgrade linter to 1.50.0 2023-01-13 17:52:03 +00:00
wakuv2 fix: mitigate flakiness of TestBasicWakuV2 2023-10-20 20:41:23 +02:00
walletdatabase Fix encryption id && rekey with a single message 2023-10-24 20:48:54 +01:00
.codeclimate.yml Re-organise the code to be more modular (#3172) 2023-03-01 17:23:17 +05:30
.dockerignore Ignore *.test files from all folders (#635) 2018-02-08 14:23:08 +02:00
.gitignore Add waku libs to gitignore 2023-10-05 14:11:38 +01:00
.golangci.yml waku2: static shards (#3944) 2023-10-12 15:21:49 -04:00
.travis.yml Remove Ropsten and Rinkeby test networks 2022-10-24 14:17:46 +02:00
BOOTNODE.md docs: clarify purpose and describe ports 2020-02-06 18:44:23 +01:00
CMakeLists.txt dev: allow option to force compiling for apple silicon 2022-06-30 09:42:19 +02:00
CONTRIBUTING.md rename status-react to status-mobile 2022-07-17 15:37:14 +02:00
LICENSE.md Create LICENSE.md 2016-09-21 10:00:29 +08:00
MAILSERVER.md rcp.sh: curl wrapper for easier RPC calls 2021-08-24 11:23:25 +02:00
Makefile make lint-fix ignore for messenger_handlers.go (#4181) 2023-10-24 11:42:56 +08:00
README.md Explain how to run Waku node in README (#1921) 2020-04-09 18:33:53 +02:00
RELEASING.md rename status-react to status-mobile 2022-07-17 15:37:14 +02:00
VERSION Bump version to v0.171.4 2023-10-24 19:02:36 +01:00
WAKU.md Create WAKU.md with spec support (#1855) 2020-02-21 17:56:15 +08:00
go.mod feat: added functionality to ask a client to sign a transaction and an endpoint to continue sending using provided signature 2023-10-17 19:42:06 +02:00
go.sum feat: added functionality to ask a client to sign a transaction and an endpoint to continue sending using provided signature 2023-10-17 19:42:06 +02:00
nix.conf ci: use Nix shell to provide Android SDK for builds 2022-12-05 15:48:27 +01:00
shell.nix ci: generate junit reports for unit tests 2023-08-17 15:29:18 +02:00