Add getKeyDiversificationFromType in key unSerialize