Luke Parker
da3095ed15
Remove FieldElement::from_square
...
The new `FieldElement::from_u256` is sufficient to load an unreduced value. The
caller can perform the square themselves, without us explicitly supporting this
special case.
Updates the monero-oxide version used to one which no longer uses
`FieldElement::from_square` (as their use is why it was added).
2025-08-22 18:42:43 -04:00
Luke Parker
758d422595
Have <ed448::Point as Zeroize>::zeroize yield a well-defined value
2025-08-20 08:14:00 -04:00
Luke Parker
4122a0135f
Fix dirty Cargo.lock
2025-08-20 05:20:47 -04:00
Luke Parker
b63ef32864
Smash Ciphersuite definitions into their own crates
...
Uses dalek-ff-group for Ed25519 and Ristretto. Uses minimal-ed448 for Ed448.
Adds ciphersuite-kp256 for Secp256k1 and P-256.
2025-08-20 05:12:36 -04:00
Luke Parker
8be03a8fc2
Fix dirty lockfile
2025-08-20 01:15:56 -04:00
Luke Parker
677a2e5749
Fix zeroization timeline in multiexp, cargo machete
2025-08-20 00:35:56 -04:00
Luke Parker
2bc2ca6906
Implement FromUniformBytes<64> for dalek_ff_group::Scalar
2025-08-20 00:06:07 -04:00
Luke Parker
900a6612d7
Use std-shims to reduce flexible-transcript MSRV to 1.66
...
flexible-transcript already had a shim to support <1.66. This was irrelevant
since flexible-transcript had a MSRV of 1.73. Due to how clunky it was, it has
been removed despite theoretically enabling an even lower MSRV.
2025-08-19 23:43:26 -04:00
Luke Parker
17c1d5cd6b
Tweak multiexp to Zeroize points when invoked in constant time, not just scalars
2025-08-19 22:28:59 -04:00
Luke Parker
75964cf6da
Place Schnorr signature aggregation behind a feature flag
2025-08-19 21:45:59 -04:00
Luke Parker
c8ef044acb
Version bump std-shims
2025-08-19 21:01:14 -04:00
Luke Parker
f6d4d1b084
Remove unused import, fix dirty Cargo.lock
2025-08-19 16:24:19 -04:00
Luke Parker
1b37dd2951
Shim std::sync::LazyLock for Rust < 1.80
...
Allows downgrading some crypto crates' MSRV to 1.79 as well.
2025-08-19 16:15:44 -04:00
Luke Parker
f2c13a0040
Expose Once within std-shims, bump spin to 0.9
...
This is technically a semver break due to bumping spin to 0.10, with the types
from spin being directly exposed. Long-term, we should not directly expose spin
but instead have our own types which are thin wrappers around spin (clearly
defining our API and allowing upgrading internals without breaking semver).
2025-08-19 13:36:01 -04:00
Luke Parker
2c4de3bab4
Bump version of ff-group-tests
2025-08-19 12:51:16 -04:00
Luke Parker
ceede14f5c
Fix misc compilation errors
2025-08-18 14:52:29 -04:00
Luke Parker
5e60ea9718
Don't offset nonces yet negate to achieve an even Y coordinate
...
Replaces an iterative loop with an immediate result, if action is necessary.
2025-08-18 14:52:29 -04:00
Luke Parker
153f6f2f2f
Update to a monero-oxide patched to dkg 0.6
2025-08-18 14:52:29 -04:00
Luke Parker
104c0d4492
Rename ThresholdKeys::secret_share to ThresholdKeys::original_secret_share
2025-08-18 14:52:29 -04:00
Luke Parker
cb489f9cef
Other version bumps
2025-08-18 14:52:29 -04:00
Luke Parker
cc662cb591
Version bumps, add necessary version specifications
2025-08-18 14:52:29 -04:00
Luke Parker
72e80c1a3d
Update everything which uses dkg to the new APIs
2025-08-18 14:52:29 -04:00
Luke Parker
b6edc94bcd
Add dealer key generation crate
2025-08-18 14:52:29 -04:00
Luke Parker
e87bbcda64
Have modular-frost compile again
2025-08-18 14:52:29 -04:00
Luke Parker
9f84adf8b3
Smash dkg into dkg, dkg-[recovery, promote, musig, pedpop]
...
promote and pedpop require dleq, which don't support no-std. All three should
be moved outside the Serai repository, per #597 , as none are planned for use
and worth covering under our BBP.
2025-08-18 14:52:29 -04:00
Luke Parker
f2563d39cb
Correct crypto MSRVs
2025-08-18 14:52:29 -04:00
Luke Parker
0c2f2979a9
Remove monero-serai, migrating to monero-oxide
2025-08-15 11:45:20 -04:00
Luke Parker
a32b97be88
Move to wasm32v1-none from wasm32-unknown-unknown
...
Works towards fixing how the Substrate node Docker image no longer works.
2025-08-15 10:55:05 -04:00
Luke Parker
8297d0679d
Update substrate to one with a properly defined panic handler as of modern Rust
2025-08-12 01:27:28 -04:00
Luke Parker
d5077ae966
Respond to 13.1.1.
...
Uses Zeroizing for username/password in monero-simple-request-rpc.
2025-08-12 01:27:28 -04:00
akildemir
dc1b8dfccd
add coins pallet tests ( #606 )
...
* add tests
* remove unused crate
* remove serai_abi
2024-10-30 16:05:56 -04:00
Luke Parker
599b2dec8f
cargo update
...
Should fix the recent CI failures re: Ethereum as well.
2024-10-09 00:39:34 -04:00
akildemir
435f1d9ae1
add specific network/coin/balance types ( #619 )
...
* add specific network/coin/balance types
* misc fixes
* fix clippy
* misc fixes
* fix pr comments
* Make halting for external networks
* fix encode/decode
2024-10-06 22:16:11 -04:00
Luke Parker
5c6160c398
Kick monero-seed, polyseed, monero-wallet-util to https://github.com/kayabaNerve/monero-wallet-util
2024-09-20 03:24:33 -04:00
Luke Parker
3af430d8de
Use the IETF transacript in bitcoin-serai, not RecommendedTranscript
...
This is more likely to be interoperable in the long term.
2024-09-19 21:13:08 -04:00
Luke Parker
6b270bc6aa
Remove async-trait from monero-rpc
2024-09-13 02:36:53 -04:00
Luke Parker
875c669a7a
Remove monero-serai multisig for just monero-[clsag, wallet] multisig
2024-09-12 18:41:35 -04:00
Luke Parker
c1a9256cc5
dockertest 0.5, correct errors from prior update commit
2024-09-05 23:31:45 -04:00
Luke Parker
0d5756ffcf
cargo update, upgrade alloy
...
Removes a dated proc-macro-crate patch.
2024-09-05 17:03:23 -04:00
Luke Parker
ac7b98daac
Remove tokio dependency from tendermint-machine
...
Indirects it via a minimal wrapper which can be trivially patched.
2024-09-05 16:30:27 -04:00
akildemir
a506d74d69
move economic security into it's own pallet ( #596 )
...
* move economic security into it's own pallet
* fix deny
* Update Cargo.toml, .github for the new crates
* Remove unused import
---------
Co-authored-by: Luke Parker <lukeparker5132@gmail.com >
2024-08-31 18:55:42 -04:00
akildemir
cccc1fc7e6
Implement block emissions ( #551 )
...
* add genesis liquidity implementation
* add missing deposit event
* fix CI issues
* minor fixes
* make math safer
* fix fmt
* implement block emissions
* make remove liquidity an authorized call
* implement setting initial values for coins
* add genesis liquidity test & misc fixes
* updato develop latest
* fix rotation test
* fix licencing
* add fast-epoch feature
* only create the pool when adding liquidity first time
* add initial reward era test
* test whole pre ec security emissions
* fix clippy
* add swap-to-staked-sri feature
* rebase changes
* fix tests
* Remove accidentally commited ETH ABI files
* fix some pr comments
* Finish up fixing pr comments
* exclude SRI from is_allowed check
* Misc changes
---------
Co-authored-by: akildemir <aeg_asd@hotmail.com >
Co-authored-by: Luke Parker <lukeparker5132@gmail.com >
2024-08-14 23:12:04 -04:00
Luke Parker
d5205ce231
Update dependencies
...
Resolves a yanked version of bytemuck.
2024-08-01 04:06:09 -04:00
Luke Parker
0f6878567f
Remove a pair of unused structs/deps
...
Caught by the most recent nightly.
2024-08-01 01:36:10 -04:00
akildemir
1493f49416
Implement genesis liquidity protocol ( #545 )
...
* add genesis liquidity implementation
* add missing deposit event
* fix CI issues
* minor fixes
* make math safer
* fix fmt
* make remove liquidity an authorized call
* implement setting initial values for coins
* add genesis liquidity test & misc fixes
* updato develop latest
* fix rotation test
* Finish merging develop
* Remove accidentally committed ETH files
* fix pr comments
* further bug fixes
* fix last pr comments
* tidy up
* Misc
---------
Co-authored-by: Luke Parker <lukeparker5132@gmail.com >
2024-07-18 19:30:19 -04:00
Luke Parker
d9f85fab26
Update lockfiles
...
Resolves a dependabot alert about the Ruby used to generate the docs site.
2024-07-18 15:18:08 -04:00
akildemir
40cc180853
add transaction and crypto unit tests
2024-07-17 16:26:31 -07:00
Luke Parker
0cb24dde02
cargo update
...
Resolves failing deny.
2024-07-14 20:27:36 -04:00
Luke Parker
c59be46e2f
Optimize Monero BPs
2024-07-12 02:18:57 -04:00
Luke Parker
d7f7f69738
Remove the DecoySelection trait
2024-07-08 00:30:42 -04:00