pub fn to_point(&self) -> CompressedRistretto {
        match self {
            Predicate::Opaque(p) => *p,
            Predicate::Key(k) => k.0,
            Predicate::Or(d) => d.precomputed_point,
            Predicate::Program(prog, blinding) => {
                let mut bytecode = Vec::new();
                prog.encode(&mut bytecode);
                let h = Predicate::commit_program(&bytecode, blinding);
                (h * PedersenGens::default().B_blinding).compress()
            }
        }
    }
/// Converts predicate to a compressed point
Converts predicate to a compressed point
Converts predicate to a compressed point
pub fn to_point(&self) -> CompressedRistretto {
        match self {
            Predicate::Opaque(p) => *p,
            Predicate::Key(k) => k.0,
            Predicate::Or(d) => d.precomputed_point,
            Predicate::Program(prog, blinding) => {
                let mut bytecode = Vec::new();
                prog.encode(&mut bytecode);
                let h = Predicate::commit_program(&bytecode, blinding);
                (h * PedersenGens::default().B_blinding).compress()
            }
        }
    }
pub fn to_point ( & self ) -> CompressedRistretto { match self { Predicate :: Opaque ( p ) => * p , Predicate :: Key ( k ) => k . 0 , Predicate :: Or ( d ) => d . precomputed_point , Predicate :: Program ( prog , blinding ) => { let mut bytecode = Vec :: new ( ) ; prog . encode ( & mut bytecode ) ; let h = Predicate :: commit_program ( & bytecode , blinding ) ; ( h * PedersenGens :: default ( ) . B_blinding ) . compress ( ) } } }
Converts predicate to a compressed point
Converts predicate to a compressed point
&self
&self