Function check_version

Source
pub fn check_version(
    bytes: Option<&[u8]>,
) -> Result<DatFileVersion, WalletDataFileError>
Expand description

From the first 12 bytes of the file (header), we check version

https://github.com/dusk-network/rusk/wiki/Binary-File-Format/#header