Skip to content

Commit

Permalink
[refactor] hyperledger-iroha#3237: transplant BLS code from ursa, ada…
Browse files Browse the repository at this point in the history
…pt to iroha_crypto types

Signed-off-by: Nikita Strygin <[email protected]>
  • Loading branch information
DCNick3 committed Nov 8, 2023
1 parent 4ebe08f commit 93b8b49
Show file tree
Hide file tree
Showing 5 changed files with 861 additions and 5 deletions.
29 changes: 25 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ getset = { workspace = true }

ursa = { workspace = true, optional = true }
blake2 = "0.10.6"
# TODO: update after ursa is ditched
sha2 = "0.10.8"
# TODO: update after ursa is ditched
hkdf = "0.12.3"
amcl_wrapper = "0.4.0"

[dev-dependencies]
hex-literal = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crypto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub const BLS_NORMAL: &str = "bls_normal";
pub const BLS_SMALL: &str = "bls_small";

ffi::ffi_item! {
/// Algorithm for hashing
/// Algorithm for hashing & signing
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default, DeserializeFromStr, SerializeDisplay, Decode, Encode, IntoSchema)]
#[repr(u8)]
pub enum Algorithm {
Expand Down
Loading

0 comments on commit 93b8b49

Please sign in to comment.