File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 11//! Features expected to land into Arkworks at some point in the future
22
3+ /// Common utilities
4+ pub ( crate ) mod common;
35/// Twisted Edwards to Short Weierstrass mapping.
46pub ( crate ) mod te_sw_map;
5- // Common utilities
6- pub ( crate ) mod common;
77
88pub ( crate ) use common:: * ;
99
1010pub use te_sw_map:: { sw_to_te, te_to_sw, SWMapping , TEMapping } ;
1111
12+ // Prevents downstream warnings when `ring` feature is not enabled.
13+ #[ doc( hidden) ]
14+ #[ cfg( feature = "ring" ) ]
15+ pub type RingProof < S > = crate :: ring:: Proof < S > ;
16+ #[ doc( hidden) ]
17+ #[ cfg( not( feature = "ring" ) ) ]
18+ pub type RingProof < S > = core:: marker:: PhantomData < S > ;
19+
1220#[ macro_export]
1321macro_rules! suite_types {
1422 ( $suite: ident) => {
@@ -30,8 +38,7 @@ macro_rules! suite_types {
3038 pub type IetfProof = $crate:: ietf:: Proof <$suite>;
3139 #[ allow( dead_code) ]
3240 pub type PedersenProof = $crate:: pedersen:: Proof <$suite>;
33- #[ cfg( feature = "ring" ) ]
34- #[ allow( dead_code, unexpected_cfgs) ]
35- pub type RingProof = $crate:: ring:: Proof <$suite>;
41+ #[ allow( dead_code) ]
42+ pub type RingProof = $crate:: utils:: RingProof <$suite>;
3643 } ;
3744}
You can’t perform that action at this time.
0 commit comments