fn strip_padding(bytecode: &[u8], metadata_length: usize) -> Option<&[u8]> {
        const PADDING_WORD: [u8; 32] = [0u8; 32];

        let length = bytecode.len();
        let metadata_with_padding_length = metadata_length + 32;
        if length < metadata_with_padding_length {
            return None;
        }
        if bytecode[length - metadata_with_padding_length..length - metadata_length] == PADDING_WORD
        {
            // Padding was added, strip it.
            Some(&bytecode[..length - metadata_with_padding_length])
        } else {
            // Padding wasn't added, strip metadata only.
            Some(&bytecode[..length - metadata_length])
        }
    }
Adds one word to the metadata length and check if it's a padding word.
If it is, strips the padding.
Returns `None` if `metadata_length` + padding won't fit into the bytecode.
core/lib/types/src/contract_verification/contract_identifier.rs