Luke Parker
cbf998ff30
Restore report_slashes
...
This does not yet handle the `SlashReport`. It solely handles the routing for
it.
2025-09-20 04:16:01 -04:00
Luke Parker
ef07253a27
Restore the event to serai-validator-sets-pallet
2025-09-20 03:42:24 -04:00
Luke Parker
ffae6753ec
Restore the set_keys call
2025-09-20 03:04:26 -04:00
Luke Parker
a04215bc13
Remove commented-out slashing code from serai-validator-sets-pallet
...
Deferred to https://github.com/serai-dex/serai/issues/657 .
2025-09-20 03:04:19 -04:00
Luke Parker
28aea8a442
Incorporate check a validator won't prevent ever not having a single point of failure
2025-09-20 01:58:39 -04:00
Luke Parker
7b46477ca0
Add explicit hook for deciding whether to include the genesis validators
2025-09-20 01:57:55 -04:00
Luke Parker
e62b62ddfb
Restore usage of pallet-grandpa to serai-validator-sets-pallet
2025-09-20 01:36:11 -04:00
Luke Parker
a2d8d0fd13
Restore integration with pallet-babe to serai-validator-sets-pallet
2025-09-20 01:23:02 -04:00
Luke Parker
b2b36b17c4
Restore GenesisConfig to the validator sets pallet
2025-09-20 00:06:19 -04:00
Luke Parker
9de8394efa
Emit events within the signals pallet
2025-09-19 22:44:29 -04:00
Luke Parker
3cb9432daa
Have the coins pallet emit events via serai_core_pallet
...
`serai_core_pallet` solely defines an accumulator for the events. We use the
traditional `frame_system::Events` to store them for now and enable retrieval.
2025-09-19 22:18:55 -04:00
Luke Parker
3f5150b3fa
Properly define the core pallet instead of placing it within the runtime
2025-09-19 19:05:47 -04:00
Luke Parker
d74b00b9e4
Update monero-oxide to the branch with the new RPC
...
See https://github.com/monero-oxide/monero-oxide/pull/66 .
Allows us to remove the shim `simple-request 0.1` we had to define as we now
have `simple-request 0.2` in tree.
2025-09-18 19:09:22 -04:00
Luke Parker
3955f92cc2
Merge branch 'next' into next-polkadot-sdk
2025-09-18 18:19:14 -04:00
Luke Parker
a9b1e5293c
Support webpki-roots as a fallback in simple-request
2025-09-18 18:15:24 -04:00
Luke Parker
80009ab67f
Tidy unused import
2025-09-18 17:49:37 -04:00
Luke Parker
df9fda2971
Fixes from errors in cherry-picked commits
2025-09-18 17:49:32 -04:00
Luke Parker
ca8afb83a1
simple-request 0.2.0
2025-09-18 17:41:31 -04:00
Luke Parker
18a9cf2535
Have simple-request return an error upon failing to find the system's root certificates
2025-09-18 17:41:31 -04:00
Luke Parker
10c126ad92
Misc updates
2025-09-18 17:41:25 -04:00
Luke Parker
19305aebc9
Finally make modular-frost work with alloc alone
...
Carries the update to `frost-schnorrkel` and `bitcoin-serai`.
2025-09-18 17:06:57 -04:00
Luke Parker
be68e27551
Tweak multiexp to compile on core
...
On `core`, it'll use a serial implementation of no benefit other than the fact
that when `alloc` _is_ enabled, it'll use the multi-scalar multiplication
algorithms.
`schnorr-signatures` was prior tweaked to include a shim for
`SchnorrSignature::verify` which didn't use `multiexp_vartime` yet this same
premise. Now, instead of callers writing these shims, it's within `multiexp`.
2025-09-18 17:06:42 -04:00
Luke Parker
d6d96fe8ff
Correct std-shims feature flagging
2025-09-18 17:06:31 -04:00
Luke Parker
95909d83a4
Expose std_shims::io on core
...
The `io::Write` trait is somewhat worthless, being implemented for nothing, yet
`Read` remains fully functional. This also allows using its polyfills _without_
requiring `alloc`.
Opportunity taken to make `schnorr-signatures` not require `alloc`.
This will require a version bump before being published due to newly requiring
the `alloc` feature be specified to maintain pre-existing behavior.
Enables resolving https://github.com/monero-oxide/monero-oxide/issues/48 .
2025-09-18 17:06:05 -04:00
Luke Parker
3bd48974f3
Add missing alloc feature to multiexp's use of zeroize
...
Fixes building `multiexp` without default features, without separately
specifying `zeroize` and adding the `alloc` feature.
2025-09-18 17:05:19 -04:00
Luke Parker
29093715e3
Add impl<R: Read> Read for &mut R to std_shims
...
Increases parity with `std::io`.
2025-09-18 17:05:07 -04:00
Luke Parker
87b4dfc8f3
Expand std_shims::prelude to better match std::prelude
2025-09-18 17:04:54 -04:00
Luke Parker
4db78b1787
Add the ability to bound the response's size limit to simple-request
2025-09-18 17:04:41 -04:00
Luke Parker
02a5f15535
Make the MSRV lint more robust
...
The prior version would fail if the last entry in the final array was not
originally the last entry.
2025-09-18 17:04:10 -04:00
Luke Parker
a1ef18a039
Have simple-request return an error upon failing to find the system's root certificates
2025-09-18 17:03:16 -04:00
Luke Parker
bec806230a
Misc updates
2025-09-18 16:25:33 -04:00
Luke Parker
8bafeab5b3
Tidy serai-signals-pallet
...
Adds `serai-validator-sets-pallet` and `serai-signals-pallet` to the runtime.
2025-09-16 08:45:02 -04:00
Luke Parker
3722df7326
Introduce KeyShares struct to represent the amount of key shares
...
Improvements, bug fixes associated.
2025-09-16 08:45:02 -04:00
Luke Parker
ddb8e1398e
Finally make modular-frost work with alloc alone
...
Carries the update to `frost-schnorrkel` and `bitcoin-serai`.
2025-09-16 08:45:02 -04:00
Luke Parker
2be69b23b1
Tweak multiexp to compile on core
...
On `core`, it'll use a serial implementation of no benefit other than the fact
that when `alloc` _is_ enabled, it'll use the multi-scalar multiplication
algorithms.
`schnorr-signatures` was prior tweaked to include a shim for
`SchnorrSignature::verify` which didn't use `multiexp_vartime` yet this same
premise. Now, instead of callers writing these shims, it's within `multiexp`.
2025-09-16 08:45:02 -04:00
Luke Parker
a82ccadbb0
Correct std-shims feature flagging
2025-09-16 08:45:02 -04:00
Luke Parker
1ff2934927
cargo update
2025-09-16 08:44:54 -04:00
Luke Parker
cd4ffa862f
Remove coins, validator-sets use of Substrate's event system
...
We've defined our own.
2025-09-15 21:32:20 -04:00
Luke Parker
c0a4d85ae6
Restore claim_deallocation call to validator-sets pallet
2025-09-15 21:32:01 -04:00
Luke Parker
55e845fe12
Expose std_shims::io on core
...
The `io::Write` trait is somewhat worthless, being implemented for nothing, yet
`Read` remains fully functional. This also allows using its polyfills _without_
requiring `alloc`.
Opportunity taken to make `schnorr-signatures` not require `alloc`.
This will require a version bump before being published due to newly requiring
the `alloc` feature be specified to maintain pre-existing behavior.
Enables resolving https://github.com/monero-oxide/monero-oxide/issues/48 .
2025-09-15 21:24:10 -04:00
Luke Parker
5ea087d177
Add missing alloc feature to multiexp's use of zeroize
...
Fixes building `multiexp` without default features, without separately
specifying `zeroize` and adding the `alloc` feature.
2025-09-14 08:55:40 -04:00
Luke Parker
dd7dc0c1dc
Add impl<R: Read> Read for &mut R to std_shims
...
Increases parity with `std::io`.
2025-09-12 18:26:27 -04:00
Luke Parker
c83fbb3e44
Expand std_shims::prelude to better match std::prelude
2025-09-12 18:24:56 -04:00
Luke Parker
befbbbfb84
Add the ability to bound the response's size limit to simple-request
2025-09-11 17:24:47 -04:00
Luke Parker
d0f497dc68
Latest patch-polkadot-sdk
2025-09-10 10:02:24 -04:00
Luke Parker
1b755a5d48
patch-polkadot-sdk enabling libp2p 0.56
2025-09-06 17:41:49 -04:00
Luke Parker
e5efcd56ba
Make the MSRV lint more robust
...
The prior version would fail if the last entry in the final array was not
originally the last entry.
2025-09-06 14:43:21 -04:00
Luke Parker
5d60b3c2ae
Update parity-db in serai-db
...
This synchronizes with an update to `patch-polkadot-sdk`.
2025-09-06 14:28:42 -04:00
Luke Parker
ae923b24ff
Update `patch-polkadot-sdk
...
Allows using `libp2p 0.55`.
2025-09-06 14:04:55 -04:00
Luke Parker
d304cd97e1
Merge branch 'next' into next-polkadot-sdk
2025-09-06 04:26:10 -04:00