From dd44a7a9d05d2c1c5833622ec77a4051efb46376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Garillot?= <4142+huitseeker@users.noreply.github.com> Date: Wed, 12 Jul 2023 17:51:59 -0400 Subject: [PATCH] refactor: make CommitmentKeyExtTrait public (#200) Allows generic programming on Nova curve cycles. --- src/provider/pedersen.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/provider/pedersen.rs b/src/provider/pedersen.rs index bad1247..fe00c52 100644 --- a/src/provider/pedersen.rs +++ b/src/provider/pedersen.rs @@ -203,7 +203,9 @@ impl CommitmentEngineTrait for CommitmentEngine { } } -pub(crate) trait CommitmentKeyExtTrait { +/// A trait listing properties of a commitment key that can be managed in a divide-and-conquer fashion +pub trait CommitmentKeyExtTrait { + /// Holds the type of the commitment engine type CE: CommitmentEngineTrait; /// Splits the commitment key into two pieces at a specified point