mirror of
https://github.com/vacp2p/stealth-address-kit.git
synced 2026-01-09 13:38:01 -05:00
workshop: stage 2
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
use crate::stealth_addresses::StealthAddressOnCurve;
|
use crate::{define_curve_tests, stealth_addresses::StealthAddressOnCurve};
|
||||||
/// Implementation of the StealthAddressOnCurve trait for the Bls12_381 curve (G2).
|
/// Implementation of the StealthAddressOnCurve trait for the Bls12_381 curve (G2).
|
||||||
use ark_bls12_381::G2Projective;
|
use ark_bls12_381::G2Projective;
|
||||||
|
|
||||||
@@ -7,3 +7,6 @@ struct Bls12_381_G2;
|
|||||||
impl StealthAddressOnCurve for Bls12_381_G2 {
|
impl StealthAddressOnCurve for Bls12_381_G2 {
|
||||||
type Projective = G2Projective;
|
type Projective = G2Projective;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// define the tests for the curve
|
||||||
|
define_curve_tests!(Bls12_381_G2);
|
||||||
|
|||||||
Reference in New Issue
Block a user