Squirrel
1b5f4243d1
sp-std removal from substrate/primitives ( #3274 )
...
This PR removes sp-std crate from substrate/primitives sub-directories.
For now crates that have `pub use` of sp-std or export macros that would
necessitate users of the macros to `extern crate alloc` have been
excluded from this PR.
There should be no breaking changes in this PR.
---------
Co-authored-by: Koute <koute@users.noreply.github.com >
2024-03-18 05:29:35 +00:00
Liam Aharon
3717ec3802
Sync Cargo.toml and crates.io versions ( #3034 )
...
Related https://github.com/paritytech/polkadot-sdk/issues/3032
---
Using https://github.com/liamaharon/cargo-workspace-version-tools/
`cargo run -- sync --path ../polkadot-sdk`
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2024-01-26 18:14:03 +00:00
Squirrel
be8e626806
Set clippy lints in workspace (requires rust 1.74) ( #2390 )
...
We currently use a bit of a hack in `.cargo/config` to make sure that
clippy isn't too annoying by specifying the list of lints.
There is now a stable way to define lints for a workspace. The only down
side is that every crate seems to have to opt into this so there's a
*few* files modified in this PR.
Dependencies:
- [x] PR that upgrades CI to use rust 1.74 is merged.
---------
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
Co-authored-by: Branislav Kontur <bkontur@gmail.com >
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
2023-12-13 15:11:07 +01:00
Davide Galassi
f5edd4f4da
Bump ark-scale version to 0.0.12 ( #2652 )
...
As per title.
Fix in ark-scale `TypeInfo` implementation
2023-12-08 10:47:48 +02:00
Liam Aharon
4a293bc5a2
Enforce consistent and correct toml formatting ( #2518 )
...
Using taplo, fixes all our broken and inconsistent toml formatting and
adds CI to keep them tidy.
If people want we can customise the format rules as described here
https://taplo.tamasfe.dev/configuration/formatter-options.html
@ggwpez, I suggest zepter is used only for checking features are
propagated, and leave formatting for taplo to avoid duplicate work and
conflicts.
TODO
- [x] Use `exclude = [...]` syntax in taplo file to ignore zombienet
tests instead of deleting the dir
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-12-01 07:38:02 +00:00
Davide Galassi
9ff5088115
Bandersnatch dependency update ( #2114 )
...
Closes https://github.com/paritytech/polkadot-sdk/issues/2013
2023-11-02 09:54:13 +01:00
Davide Galassi
b53a93a676
Bump ec-utils version ( #2104 )
2023-11-01 09:15:19 +01:00
Davide Galassi
c38aae628b
Elliptic curves utilities refactory ( #2068 )
...
- Usage the new published
[arkworks-extensions](https://github.com/paritytech/arkworks-extensions )
crates.
Hooks are internally defined to jump into the proper host functions.
- Conditional compilation of each curve (gated by feature with curve
name)
- Separation in smaller host functions sets, divided by curve (fits
nicely with prev point)
2023-10-31 14:59:15 +01:00
Davide Galassi
38ef04eb53
Arkworks Elliptic Curve utils overhaul ( #1870 )
...
- Removal of Arkworks unit tests. These tests were just testing the
arkworks upstream implementation which should be assumed correct. This
is not the place to test well known dependencies.
- Removal of some over-engineering. We just store the calls to Arkworks
in one file. Per-curve sources are not required.
- Docs formatting
---
I also took the opportunity to bump the `bandersnatch-vrfs` crate
revision internally providing some new shiny stuff.
2023-10-16 10:43:52 +02:00
Davide Galassi
8dce0ad2a3
Use sp_std Vec in no-std crate ( #1471 )
2023-09-08 19:48:17 +02:00
Davide Galassi
0d6ef3e6c2
Use bandersnatch-vrfs with locked dependencies ref ( #1342 )
...
* Use bandersnatch-vrfs with locked dependencies ref
* Update ark-scale to 0.0.10
* Bump ark-substrate crates version
2023-09-01 15:58:46 +02:00
Przemek Rzad
bfb241d7f3
Add missing licenses and tune the scanning workflow ( #1288 )
...
* Add missing Cumulus licenses
* Typo
* Add missing Substrate licenses
* Single job checking the sub-repos in steps
* Remove dates
* Remove dates
* Add missing (C)
* Update FRAME UI tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update more UI tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-08-30 15:45:49 +03:00
Oliver Tale-Yazdi
dcda0e50f5
Fix build profiles ( #1229 )
...
* Fix build profiles
Closes https://github.com/paritytech/polkadot-sdk/issues/1155
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Manually set version to 1.0.0
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use workspace repo
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* 'Authors and Edition from workspace
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-08-29 13:39:41 +02:00
alvicsam
f441a5fc93
Diener workspacify
...
Signed-off-by: alvicsam <alvicsam@gmail.com >
2023-08-25 11:05:17 +02:00
Oliver Tale-Yazdi
8b9455465b
Format and Sort features in Cargo.toml files ( #14803 )
...
* CI: Add feature sorting check
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Sort all features
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add some mistakes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Revert "Add some mistakes"
This reverts commit b2b1099f979f6decb22d09b46689c1554bb72e81.
* CI job naming
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add oneliner formatting
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Explain tool
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use latest version
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Better erorr message
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Format after master merge
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use --check option
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Messed up the merge commit...
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-08-23 14:21:52 +00:00
Lulu
6c1c7290cb
Add description to sp-crypto-ec-utils ( #14670 )
...
A description is needed to publish to crates.io
2023-08-08 09:32:05 +00:00
Koute
9d1741eb3c
Bump parity-scale-codec to 3.6.1 ( #14428 )
2023-06-21 11:37:11 +00:00
Achim Schneider
03490d5dd0
arkworks integration ( #13031 )
...
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix compression
* fix compression
* fix compression
* fix compression
* fix compression
* fix std leak
* fix std leak
* fix std leak
* merge master
* merge master
* cargo update
* cargo update
* cargo update
* cargo update
* cargo update
* use serialize_result
* cargo update
* cargo update
* cargo update
* cargo update
* reduce boilerplate code
* remove host function muls
* reduce boilerplate code
* remove patches
* uuse correct ark-substrate branch
* reduce boilerplate code
* cleanup
* cleanup
* proper error handling
* derive serialize for error
* proper error handling
* proper error handling
* proper error handling
* derive Debug for PairingError
* sp-arkworks path
* cargo update
* adopt tests to error handling
* fix tests
* cargo update
* remove results
* deserialize as G2Affine
* cargo update
* add codex index to PairingError
* replace Vec<Vec<u8>>
* replace Vec<Vec<u8>>
* use into_iter for chunks
* use chunks for scalars
* fix ersialized_size
* use into
* collect as vec
* collect as vec
* no collect Vec
* use into_iter
* import AffineRepr
* fix typo
* cargo update
* new serialization
* fix typo
* unwrap results
* unwrap results
* use correct deserialization
* fix bugs, cleanup
* correct len
* vec without capacity
* Revert "vec without capacity"
This reverts commit 2b1cd004f9f3f7cb1b0513c794f9ea781bb75ef1.
* Revert "correct len"
This reverts commit b85de8606364260c310f3c306b0a920e184e7e53.
* Revert "fix bugs, cleanup"
This reverts commit eef4c77ac99c0ed2e4b4857702e6ab5f1d2ce36c.
* Revert "use correct deserialization"
This reverts commit 9eacba93150bd41614e198cc6f2838d57d14f8db.
* Revert "unwrap results"
This reverts commit b0df1e1bdbd2518baa23040e0c6663ca69d2ba25.
* Revert "unwrap results"
This reverts commit de3cfbd04964dd66faeae5616b5763b1d30520e2.
* Revert "fix typo"
This reverts commit c12045d78f2468800be30ee1b31b12768aa7a786.
* Revert "new serialization"
This reverts commit e56a088be7612e4511382817afaf61f65b0c3aca.
* Revert "cargo update"
This reverts commit 15898da94677a5f19290a7f15fb15cb4cbd8f431.
* Revert "fix typo"
This reverts commit c89e96331f1d07e3b9b6a00ea9c89896553d67c6.
* Revert "import AffineRepr"
This reverts commit 5a103ac1b3506736181ddda040d896930bd8f83a.
* Revert "use into_iter"
This reverts commit 2e31d912bd4103529b40b250410f9f5b1a980ce4.
* Revert "no collect Vec"
This reverts commit db18dcac34fc3c3ddc20c3b42331f8d5fa7014b5.
* Revert "collect as vec"
This reverts commit dd3f809e965cec361a0feaab9abfae7115756e2c.
* Revert "collect as vec"
This reverts commit 9167d5984d8ecc3903d24f96d8c9fcac45c87bf7.
* Revert "use into"
This reverts commit 344cfffbd38fde130225df35f36259872754bd3a.
* Revert "fix ersialized_size"
This reverts commit c6a760986551cbbcaa3748564dd5e3c7630209c6.
* Revert "use chunks for scalars"
This reverts commit 67987ae0bbba7e3963ccba0dd9f1fbaa4c922d4f.
* Revert "use into_iter for chunks"
This reverts commit 1ddd6b89c2f8fb4e6dd26768be0edaca2d1be3f9.
* Revert "replace Vec<Vec<u8>>"
This reverts commit 4d3b13c02a9db0ea6bd130bda38c851f2371ec6e.
* cargo update
* cargo update
* Revert "replace Vec<Vec<u8>>"
This reverts commit 4389714068d939abc97288c5b06ee23d399a19ad.
* cargo update
* add error
* add error
* add error
* fix typo
* fix imports
* import coded
* import codec
* import PairingError
* fix patches
* sp-arkworks
* sp-arkworks
* use random values for multiplications
* cargo update
* fix imports
* fix imports
* add host functions
* re-add mul impls
* cargo update
* cargo update
* cargo update
* cargo update
* cargo update
* cargo update
* cargo update
* PairingError -> ()
* remove PairingError
* cargo update
* cargo update
* cargo update
* reduce boilerplate code
* cargo update
* update comments
* cargo update
* optimize code quality
* use ark_scale (#13954 )
* use ark_scale
* fix tests
* fix tests
* cleanup & comments
* use correct PR branch
* hazmat
* ed curves, use ArkScaleProjective
* Achimcc/arkworks integration remove affine hostcalls (#13971 )
* remove affine host-calls
* remove affine host-call impls, also in tests
* cargo update
* ark-substrate: use main branch
* cargo update
* Achimcc/arkworks integration bandersnatch (#13977 )
* use bandersnatch
* bandersnatch
* add abndersnatch sw msm
* use correct PR branch
* cargo update
* cargo update
* fix tests
* cleanup
* cleanup
* fix tests
* refactor tests
* cargo update
* cargo update
* cargo update
* refactor tests
* cleanup & update tests
* upgrade arkworks/algebra
* cargo update
* adopt tests
* versioning ark-substrate
* cargo update
* remove patched deps
* bump ark-scale
* use crates-io deps
* fix doc comments
* Cargo.toml, linebreaks at end
* reorgainze tests
* sp-arkworks -> sp-crypto-ec-utils
* move host functions to crypto-ec-utils
* fmt
* remove sp-ec-crypto-utils from io
* remove unwrap from te msm
* remove elliptic_curves references in test
* elliptic_curves references in test
* update doc comments
* remove warn missing docs
* fmt
* cargo update
* update doc comments
* cargo update
* cargo update, bump arkworks, codec versions
* bump runtime version in sp-crypto-ec-utils
* remove feature flag ec-utils-experimental
* crypto-ec-utils -> crypto/ec-utils
* tests/ -> test-data/
* update doc comments for signatures
* update comments
* update doc comments for signatures
* fix doc comments
* fix doc comments
* fix doc comments
* fix doc comments
* fix doc comments
* cleanup
* fix doc comments
* cargo update
* fix doc comments
* cargo update
2023-06-06 10:23:07 +00:00