Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
shasper
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
shasper
Commits
7a2e6a27
Commit
7a2e6a27
authored
6 years ago
by
Wei Tang
Browse files
Options
Downloads
Patches
Plain Diff
Should use bls-aggregate crate instead
parent
b4839bdf
Branches
Branches containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Cargo.lock
+15
-19
15 additions, 19 deletions
Cargo.lock
crypto/Cargo.toml
+2
-4
2 additions, 4 deletions
crypto/Cargo.toml
crypto/src/lib.rs
+9
-8
9 additions, 8 deletions
crypto/src/lib.rs
with
26 additions
and
31 deletions
Cargo.lock
+
15
−
19
View file @
7a2e6a27
...
...
@@ -50,6 +50,11 @@ dependencies = [
"tokio-timer 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "amcl"
version = "0.1.0"
source = "git+https://github.com/sorpaas/signature-schemes#af51e8a29c5cc9788d21985fdbe570230c1216aa"
[[package]]
name = "ansi_term"
version = "0.11.0"
...
...
@@ -238,12 +243,14 @@ dependencies = [
]
[[package]]
name = "bls"
version = "0.
0.1
"
source = "git+https://github.com/sorpaas/
bls#a32ce55298a89edb8a0373815029bcb9eff28872
"
name = "bls
-aggregates
"
version = "0.
2.0
"
source = "git+https://github.com/sorpaas/
signature-schemes#af51e8a29c5cc9788d21985fdbe570230c1216aa
"
dependencies = [
"pairing 0.14.0 (git+https://github.com/sorpaas/pairing)",
"rand 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
"amcl 0.1.0 (git+https://github.com/sorpaas/signature-schemes)",
"blake2 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
"lazy_static 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"rand 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
...
...
@@ -1753,16 +1760,6 @@ dependencies = [
"stable_deref_trait 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "pairing"
version = "0.14.0"
source = "git+https://github.com/sorpaas/pairing#2349fb2107743cbc344a102f2646d6ff97ea041e"
dependencies = [
"blake2 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
"byteorder 1.2.7 (registry+https://github.com/rust-lang/crates.io-index)",
"rand 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "parity-bytes"
version = "0.1.0"
...
...
@@ -2421,8 +2418,7 @@ dependencies = [
name = "shasper-crypto"
version = "0.1.0"
dependencies = [
"bls 0.0.1 (git+https://github.com/sorpaas/bls)",
"pairing 0.14.0 (git+https://github.com/sorpaas/pairing)",
"bls-aggregates 0.2.0 (git+https://github.com/sorpaas/signature-schemes)",
]
[[package]]
...
...
@@ -4063,6 +4059,7 @@ dependencies = [
"checksum aesni 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "6810b7fb9f2bb4f76f05ac1c170b8dde285b6308955dc3afd89710268c958d9e"
"checksum aho-corasick 0.6.9 (registry+https://github.com/rust-lang/crates.io-index)" = "1e9a933f4e58658d7b12defcf96dc5c720f20832deebe3e0a19efd3b6aaeeb9e"
"checksum aio-limited 0.1.0 (git+https://github.com/paritytech/aio-limited.git)" = "<none>"
"checksum amcl 0.1.0 (git+https://github.com/sorpaas/signature-schemes)" = "<none>"
"checksum ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b"
"checksum app_dirs 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "e73a24bad9bd6a94d6395382a6c69fe071708ae4409f763c5475e14ee896313d"
"checksum arrayref 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "0d382e583f07208808f6b1249e60848879ba3543f57c32277bf52d69c2f0f0ee"
...
...
@@ -4085,7 +4082,7 @@ dependencies = [
"checksum blake2-rfc 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)" = "5d6d530bdd2d52966a6d03b7a964add7ae1a288d25214066fd4b600f0f796400"
"checksum block-buffer 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "a076c298b9ecdb530ed9d967e74a6027d6a7478924520acddcddc24c1c8ab3ab"
"checksum block-cipher-trait 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "370424437b9459f3dfd68428ed9376ddfe03d8b70ede29cc533b3557df186ab4"
"checksum bls
0.0.1
(git+https://github.com/sorpaas/
bl
s)" = "<none>"
"checksum bls
-aggregates 0.2.0
(git+https://github.com/sorpaas/
signature-scheme
s)" = "<none>"
"checksum bs58 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "0de79cfb98e7aa9988188784d8664b4b5dad6eaaa0863b91d9a4ed871d4f7a42"
"checksum byte-tools 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "560c32574a12a89ecd91f5e742165893f86e3ab98d21f8ea548658eb9eef5f40"
"checksum byteorder 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "96c8b41881888cc08af32d47ac4edd52bc7fa27fef774be47a92443756451304"
...
...
@@ -4242,7 +4239,6 @@ dependencies = [
"checksum owning_ref 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "9d52571ddcb42e9c900c901a18d8d67e393df723fcd51dd59c5b1a85d0acb6cc"
"checksum owning_ref 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "cdf84f41639e037b484f93433aa3897863b561ed65c6e59c7073d7c561710f37"
"checksum owning_ref 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "49a4b8ea2179e6a2e27411d3bca09ca6dd630821cf6894c6c7c8467a8ee7ef13"
"checksum pairing 0.14.0 (git+https://github.com/sorpaas/pairing)" = "<none>"
"checksum parity-bytes 0.1.0 (git+https://github.com/paritytech/parity-common?rev=616b40150ded71f57f650067fcbc5c99d7c343e6)" = "<none>"
"checksum parity-codec 2.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "dca389ea5e1632c89b2ce54f7e2b4a8a8c9d278042222a91e0bf95451218cb4c"
"checksum parity-codec-derive 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ffa42c2cb493b60b12c75b26e8c94cb734af4df4d7f2cc229dc04c1953dac189"
...
...
This diff is collapsed.
Click to expand it.
crypto/Cargo.toml
+
2
−
4
View file @
7a2e6a27
...
...
@@ -4,12 +4,10 @@ version = "0.1.0"
authors
=
[
"Wei Tang <hi@that.world>"
]
[dependencies]
bls
=
{
git
=
"https://github.com/sorpaas/bls"
,
default-features
=
false
}
pairing
=
{
git
=
"https://github.com/sorpaas/pairing"
,
default-features
=
false
}
bls-aggregates
=
{
git
=
"https://github.com/sorpaas/signature-schemes"
,
default-features
=
false
}
[features]
default
=
[
"std"
]
std
=
[
"bls/std"
,
"pairing/std"
,
"bls-aggregates/std"
,
]
This diff is collapsed.
Click to expand it.
crypto/src/lib.rs
+
9
−
8
View file @
7a2e6a27
pub
extern
crate
bls
;
pub
extern
crate
pairing
;
pub
extern
crate
bls_aggregates
;
use
pairing
::
bls12_381
::
Bls12
;
pub
type
BlsPair
=
bls
::
Keypair
<
Bls12
>
;
pub
type
BlsPublicKey
=
bls
::
PublicKey
<
Bls12
>
;
pub
type
BlsSignature
=
bls
::
Signature
<
Bls12
>
;
pub
type
BlsAggregateSignature
=
bls
::
AggregateSignature
<
Bls12
>
;
mod
bls
{
pub
use
bls_aggregates
::
AggregatePublicKey
;
pub
use
bls_aggregates
::
AggregateSignature
;
pub
use
bls_aggregates
::
Keypair
as
Pair
;
pub
use
bls_aggregates
::
PublicKey
;
pub
use
bls_aggregates
::
SecretKey
;
pub
use
bls_aggregates
::
Signature
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment