This is the reference implementation for BIP 351 written in Rust.
BIP351 specification may be found here.