fn spend_with_secret_scalar(qty: u64, flavor: Scalar, pred: Predicate, secret: Scalar) -> Program {
    Program::build(|p| {
        p.cloak_helper(1, vec![(qty, flavor)])
            .output_helper(pred)
            .r#const()
            .push(secret)
            .r#const()
            .eq()
            .verify()
    })
}
/// Program that spends an input on the stack unlocked with knowledge of a secret Scalar.
Program that spends an input on the stack unlocked with knowledge of a secret Scalar.
Program that spends an input on the stack unlocked with knowledge of a secret Scalar .
fn spend_with_secret_scalar(qty: u64, flavor: Scalar, pred: Predicate, secret: Scalar) -> Program {
    Program::build(|p| {
        p.cloak_helper(1, vec![(qty, flavor)])
            .output_helper(pred)
            .r#const()
            .push(secret)
            .r#const()
            .eq()
            .verify()
    })
}
fn spend_with_secret_scalar ( qty : u64 , flavor : Scalar , pred : Predicate , secret : Scalar ) -> Program { Program :: build ( | p | { p . cloak_helper ( 1 , vec ! [ ( qty flavor ) ] ) . output_helper ( pred ) . r#const ( ) . push ( secret ) . r#const ( ) . eq ( ) . verify ( ) } ) }
Program that spends an input on the stack unlocked with knowledge of a secret Scalar.
Program that spends an input on the stack unlocked with knowledge of a secret Scalar .
qty
u64
flavor
Scalar
pred
Predicate
secret
Scalar
qty
u64
flavor
Scalar
pred
Predicate
secret
Scalar