mirror of
https://github.com/pezkuwichain/bizinikiwi-bn.git
synced 2026-10-20 18:56:16 +00:00
merge substrate-bn branch into master (#21)
* fix edition and prepare publish * Publish for substrate branch * fix edition 2018 * add Parity as authors Co-authored-by: NikVolf <nikvolf@gmail.com>
This commit is contained in:
1 parent
b048fe1d84
commit
47d6e4f919
5 files changed
+10
-23
No files matched your search
+1
-4
@@ -1,10 +1,7 @@
|
||||
// This is an example of three-party Diffie-Hellman key exchange
|
||||
// Requires two rounds
|
||||
|
||||
extern crate bn;
|
||||
extern crate rand;
|
||||
|
||||
use bn::*;
|
||||
use substrate_bn::*;
|
||||
|
||||
fn main() {
|
||||
let rng = &mut rand::thread_rng();
|
||||
|
||||
+1
-3
@@ -1,6 +1,4 @@
|
||||
extern crate bn;
|
||||
extern crate rand;
|
||||
use bn::{Group, Fr, G1, G2, pairing};
|
||||
use substrate_bn::{Group, Fr, G1, G2, pairing};
|
||||
|
||||
fn main() {
|
||||
let rng = &mut rand::thread_rng();
|
||||
|
||||
Reference in new issue
Block a user