pub trait SphinxSuite {
type P: Keypair;
type E: Scalar + for<'a> From<&'a Self::P>;
type G: GroupElement<Self::E> + for<'a> From<&'a <Self::P as Keypair>::Public>;
// Provided method
fn new_shared_keys(
public_keys: &[<Self::P as Keypair>::Public],
) -> Result<SharedKeys<Self::E, Self::G>> { ... }
}
Expand description
Represents an instantiation of the Spinx protocol using the given EC group and corresponding public key object.
Required Associated Types§
Provided Methods§
Convenience function to generate shared keys from the path of public keys.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.