Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate some design tweaks over Crypto Implementation #1252

Closed
wants to merge 45 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
62dda70
define CryptoProvider trait
blasrodri Oct 17, 2022
b7920c3
wip
blasrodri Oct 17, 2022
c4b52de
implement CryptoProvider for Substrate (WIP)
blasrodri Oct 19, 2022
a35c105
comment issues
blasrodri Oct 19, 2022
47b56bf
ed25519_verify implementation for SubstrateHostFunctionsManager
blasrodri Oct 19, 2022
2d0fc38
introduce EcdsaSecp256k1Signer
blasrodri Oct 19, 2022
6cbcbb3
doc a bit
blasrodri Oct 19, 2022
e6edade
move CryptoProvider to tendermint crate instead
blasrodri Oct 20, 2022
bcd6be0
rename host_functions module to crypto
blasrodri Oct 31, 2022
7f5e812
tendermint: Remove ED25519_SIGNATURE_SIZE
mzabaluev Nov 17, 2022
3fecdef
tendermint: clean up mod crypto
mzabaluev Nov 17, 2022
4a511c5
Disentangle CryptoProvider from k256 crate
mzabaluev Nov 17, 2022
9575852
Add DefaultCryptoProvider
mzabaluev Nov 17, 2022
3573ef0
tendermint: reorg mod crypto
mzabaluev Nov 18, 2022
2baed4f
tendermint: generalize hash methods
mzabaluev Nov 18, 2022
a032364
tendermint: eliminate get_split_point helper
mzabaluev Nov 18, 2022
f264742
light-client: eliminate Hasher
mzabaluev Nov 20, 2022
f0eee32
fix no_std
mzabaluev Nov 21, 2022
ce146c8
Fix the tools build
mzabaluev Nov 23, 2022
4a65669
Fix wasm-light-client build
mzabaluev Nov 23, 2022
d39148d
kvstore-test: No need to copy vec-of-vecs
mzabaluev Nov 24, 2022
4503794
Merge branch 'main' into mikhail/add-crypto-provider
mzabaluev Nov 28, 2022
f1d9593
Merge branch 'main' into mikhail/add-crypto-provider
mzabaluev Dec 1, 2022
ec3cf88
Break down CryptoProvider into functional traits
mzabaluev Dec 1, 2022
5a2dfe5
alt_crypto test: Roll our own signature type
mzabaluev Dec 1, 2022
58c113a
Fix the wasm build
mzabaluev Dec 1, 2022
dcabd56
Fix a clippy lint
mzabaluev Dec 1, 2022
76a3fce
Fix a clippy lint in alt_crypto test
mzabaluev Dec 1, 2022
a9c86f2
Disentangle CommitValidator from the hasher
mzabaluev Dec 2, 2022
79af98a
light-client: Enable shrinking in backward test
mzabaluev Dec 2, 2022
c5ec595
light-client: update edition to rust2021
mzabaluev Dec 2, 2022
4f73378
Recover LightClient::verify_backward
mzabaluev Dec 2, 2022
41efc0b
Fix light-client-js build, record technical debt
mzabaluev Dec 5, 2022
6365d49
tendermint: Make sha2 an optional dependency
mzabaluev Dec 7, 2022
58425b5
Redesign crypto::Sha256, add MerkleHash trait
mzabaluev Dec 13, 2022
1bb92a9
Fix all-features build
mzabaluev Dec 14, 2022
079ec41
chore: fix clippy lints
mzabaluev Dec 14, 2022
1133fd9
tendermint: "rust-crypto" does not imply "k256"
mzabaluev Dec 14, 2022
4a38c73
rpc: require tendermint/rust-crypto
mzabaluev Dec 15, 2022
374303c
Merge branch 'main' into mikhail/add-crypto-provider
mzabaluev Dec 15, 2022
adb6327
Remove a bogus lint override
mzabaluev Dec 15, 2022
eac7b5a
Changelog entry for #1238
mzabaluev Dec 15, 2022
b85bb88
Investiage some design tweaks over CryptoProvider
Farhad-Shabani Dec 15, 2022
dec692c
Refactor validator's verifier
Farhad-Shabani Dec 19, 2022
87ea93e
Refactor verify method for better readability and maintainability
Farhad-Shabani Dec 20, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tendermint: Remove ED25519_SIGNATURE_SIZE
It has been deprecated for some time.
  • Loading branch information
mzabaluev committed Nov 17, 2022
commit 7f5e812fc2fc625eac9b1e4f0084b89bac0233ea
3 changes: 0 additions & 3 deletions tendermint/src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ use tendermint_proto::Protobuf;

use crate::{error::Error, prelude::*};

#[deprecated(since = "0.23.2", note = "use Ed25519Signature::BYTE_SIZE instead")]
pub const ED25519_SIGNATURE_SIZE: usize = Ed25519Signature::BYTE_SIZE;

/// The expected length of all currently supported signatures, in bytes.
pub const SIGNATURE_LENGTH: usize = 64;

Expand Down