Struct solana_zk_token_sdk::encryption::pedersen::PedersenBase
source · [−]pub struct PedersenBase {
pub G: RistrettoPoint,
pub H: RistrettoPoint,
}
Expand description
Curve basepoints for which Pedersen commitment is defined over.
These points should be fixed for the entire system. TODO: Consider setting these points as constants?
Fields
G: RistrettoPoint
H: RistrettoPoint
Trait Implementations
Default PedersenBase. This is set arbitrarily for now, but it should be fixed for the entire system.
G
is a constant point in the curve25519_dalek library
H
is the Sha3 hash of G
interpretted as a RistrettoPoint
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PedersenBase
impl Send for PedersenBase
impl Sync for PedersenBase
impl Unpin for PedersenBase
impl UnwindSafe for PedersenBase
Blanket Implementations
pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn example() -> T
Mutably borrows from an owned value. Read more