Chia Proof-of-Space implementation uses ChaCha8 cipher internally as PRNG instead of encrypting anything. This means that with current API it is necessary to apply it to zeroed vector first, which is an extra zeroing, memory copy and pointless XOR.
I'm wondering if it would be possible to somehow access internal keystream directly while doing less work, possibly by accepting &mut [MaybeUninit<u8>] as an argument.