File tree Expand file tree Collapse file tree 8 files changed +341
-303
lines changed Expand file tree Collapse file tree 8 files changed +341
-303
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ serde_json = "1.0"
3434indexmap = { version = " 2.2.6" , features = [" serde" ] }
3535
3636[features ]
37- default = [ " std" , " ring " ]
37+ default = [ " std" ]
3838std = [
3939 " ark-std/std" ,
4040 " ark-ec/std" ,
Original file line number Diff line number Diff line change @@ -71,6 +71,26 @@ pub type RingVerifier<S> =
7171/// Actual ring proof.
7272pub type RingProof < S > = ring_proof:: RingProof < BaseField < S > , Pcs < S > > ;
7373
74+ #[ macro_export]
75+ macro_rules! ring_suite_types {
76+ ( $suite: ident) => {
77+ #[ allow( dead_code) ]
78+ pub type PcsParams = $crate:: ring:: PcsParams <$suite>;
79+ #[ allow( dead_code) ]
80+ pub type RingContext = $crate:: ring:: RingContext <$suite>;
81+ #[ allow( dead_code) ]
82+ pub type RingCommitment = $crate:: ring:: RingCommitment <$suite>;
83+ #[ allow( dead_code) ]
84+ pub type RingVerifierKey = $crate:: ring:: VerifierKey <$suite>;
85+ #[ allow( dead_code) ]
86+ pub type RingProver = $crate:: ring:: RingProver <$suite>;
87+ #[ allow( dead_code) ]
88+ pub type RingVerifier = $crate:: ring:: RingVerifier <$suite>;
89+ #[ allow( dead_code) ]
90+ pub type RingProof = $crate:: ring:: Proof <$suite>;
91+ } ;
92+ }
93+
7494/// Ring proof bundled together with a Pedersen proof.
7595///
7696/// Pedersen proof is used to provide VRF capability.
@@ -493,17 +513,17 @@ pub(crate) mod testing {
493513 macro_rules! ring_suite_tests {
494514 ( $suite: ident) => {
495515 #[ test]
496- fn ring_prove_verify ( ) {
516+ fn prove_verify ( ) {
497517 $crate:: ring:: testing:: prove_verify:: <$suite>( )
498518 }
499519
500520 #[ test]
501- fn ring_padding_check ( ) {
521+ fn padding_check ( ) {
502522 $crate:: ring:: testing:: padding_check:: <$suite>( )
503523 }
504524
505525 #[ test]
506- fn ring_accumulator_base_check ( ) {
526+ fn accumulator_base_check ( ) {
507527 $crate:: ring:: testing:: accumulator_base_check:: <$suite>( )
508528 }
509529 } ;
You can’t perform that action at this time.
0 commit comments