fn unpack_pool_registration(
    codec: &mut Codec<&[u8]>
) -> Result<PoolRegistration, ReadError>