pub fn block_forest_and_its_keys(
    quorum_size: usize,
    depth: u32,
) -> impl Strategy<Value = (Vec<Ed25519PrivateKey>, LinearizedBlockForest<Vec<usize>>)> {
    proptest::collection::vec(proptests::arb_signing_key(), quorum_size).prop_flat_map(
        move |private_key| {
            (
                Just(private_key.clone()),
                block_forest_from_keys(depth, private_key),
            )
        },
    )
}
/// This returns keys and a block forest created from them
This returns keys and a block forest created from them
This returns keys and a block forest created from them
pub fn block_forest_and_its_keys(
    quorum_size: usize,
    depth: u32,
) -> impl Strategy<Value = (Vec<Ed25519PrivateKey>, LinearizedBlockForest<Vec<usize>>)> {
    proptest::collection::vec(proptests::arb_signing_key(), quorum_size).prop_flat_map(
        move |private_key| {
            (
                Just(private_key.clone()),
                block_forest_from_keys(depth, private_key),
            )
        },
    )
}
pub fn block_forest_and_its_keys ( quorum_size : usize , depth : u32 , ) -> impl Strategy < Value = ( Vec < Ed25519PrivateKey > , LinearizedBlockForest < Vec < usize > > ) > { proptest :: collection :: vec ( proptests :: arb_signing_key ( ) , quorum_size ) . prop_flat_map ( move | private_key | { ( Just ( private_key . clone ( ) ) , block_forest_from_keys ( depth , private_key ) , ) } , ) }
This returns keys and a block forest created from them
This returns keys and a block forest created from them
quorum_size
usize
depth
u32
quorum_size
usize
depth
u32