File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,12 @@ ahash = "0.8"
1414anyhow = " 1"
1515base32 = " 0.5.1"
1616base64 = " 0.22"
17- blake2 = { git = " https://github.com/huitseeker/hashes.git" , branch = " blake2x-pr" , features = [" blake2x" ] }
18- bls-signatures = { version = " 0.15" }
17+ blake2 = { git = " https://github.com/huitseeker/hashes.git" , branch = " blake2x-pr" , features = [
18+ " blake2x" ,
19+ ] }
20+ bls-signatures = { version = " 0.15" , default-features = false , features = [
21+ " blst" ,
22+ ] }
1923bls12_381 = " 0.8"
2024cid = { version = " 0.10.1" , features = [" std" ] }
2125fvm_ipld_bitfield = " 0.7.1"
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ rust-version.workspace = true
1212[dependencies ]
1313blake2.workspace = true
1414bls-signatures.workspace = true
15- bls12_381.workspace = true
15+ blstrs = " 0.7"
16+ group = " 0.13"
1617filecoin-f3-gpbft = { path = " ../gpbft" , version = " 0.1.0" }
1718hashlink.workspace = true
1819parking_lot.workspace = true
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ use crate::verifier::BLSError;
1313use blake2:: Blake2xs ;
1414use blake2:: digest:: { ExtendableOutput , Update , XofReader } ;
1515use bls_signatures:: { PublicKey , Serialize , Signature } ;
16- use bls12_381:: { G1Projective , G2Projective , Scalar } ;
16+ use blstrs:: { G1Projective , G2Projective , Scalar } ;
17+ use group:: Group ;
1718
1819/// BDN aggregation context for managing signature and public key aggregation
1920pub struct BDNAggregation {
@@ -106,7 +107,7 @@ impl BDNAggregation {
106107 bytes_32[ ..16 ] . copy_from_slice ( chunk) ;
107108
108109 // BLS12-381 scalars expects little-endian byte representation
109- let scalar = Scalar :: from_bytes ( & bytes_32) ;
110+ let scalar = Scalar :: from_bytes_be ( & bytes_32) ;
110111 if scalar. is_some ( ) . into ( ) {
111112 coefficients. push ( scalar. unwrap ( ) ) ;
112113 } else {
You can’t perform that action at this time.
0 commit comments