fn make_output(qty: u64, flv: Scalar, pred: Predicate) -> Contract {
    let anchor = Anchor::nonce(
        [0u8; 32],
        &Predicate::Opaque(RISTRETTO_BASEPOINT_COMPRESSED),
        0,
    );
    Contract {
        anchor,
        payload: vec![PortableItem::Value(Value {
            qty: Commitment::blinded(qty),
            flv: Commitment::blinded(flv),
        })],
        predicate: pred,
    }
}
/// Creates an Output contract with given quantity, flavor, and predicate.
Creates an Output contract with given quantity, flavor, and predicate.
Creates an Output contract with given quantity flavor and predicate .
fn make_output(qty: u64, flv: Scalar, pred: Predicate) -> Contract {
    let anchor = Anchor::nonce(
        [0u8; 32],
        &Predicate::Opaque(RISTRETTO_BASEPOINT_COMPRESSED),
        0,
    );
    Contract {
        anchor,
        payload: vec![PortableItem::Value(Value {
            qty: Commitment::blinded(qty),
            flv: Commitment::blinded(flv),
        })],
        predicate: pred,
    }
}
fn make_output ( qty : u64 , flv : Scalar , pred : Predicate ) -> Contract { let anchor = Anchor :: nonce ( [ 0u8 ; 32 ] , & Predicate :: Opaque ( RISTRETTO_BASEPOINT_COMPRESSED ) , 0 , ) ; Contract { anchor , payload : vec ! [ PortableItem Value ( Value { qty Commitment blinded ( qty ) flv Commitment blinded ( flv ) } ) ] , predicate : pred , } }
Creates an Output contract with given quantity, flavor, and predicate.
Creates an Output contract with given quantity flavor and predicate .
qty
u64
flv
Scalar
pred
Predicate
qty
u64
flv
Scalar
pred
Predicate